Skip to content

Instantly share code, notes, and snippets.

@amirkdv
amirkdv / php_mdb.rst
Last active Apr 28, 2021
How to handle MS Access MDB files in Linux with PHP5 PDO and ODBC
View php_mdb.rst

To be able to use PHP5 PDO with MS Access mdb files the following is required (the same applies for the PHP4 style of using odbc_X except for the obviously PDO specific requirements):

PHP ODBC module

In Linux this is achieved by intalling the php5-odbc package:

@ryansechrest
ryansechrest / html-style-guide.md
Last active Oct 4, 2021
HTML style guide with coding standards and best practices.
View html-style-guide.md

HTML Style Guide

All rules and guidelines in this document apply to HTML files.

The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Icon Legend:

· Space, Tab, Enter/Return

@xanf
xanf / AjaxAuthenticationListener.php
Created Jun 8, 2011
AJAX auth errors listener for Symfony2
View AjaxAuthenticationListener.php
<?php
namespace Application\ProdrepHelperBundle\Component\Event;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
/**
*/
class AjaxAuthenticationListener