Skip to content

Instantly share code, notes, and snippets.


Sebastian Krebs KingCrunch

View GitHub Profile
lsmith77 / gist:4078842
Created Nov 15, 2012
stripping cookies for caching when using the Symfony2 HttpCache
View gist:4078842
require_once __DIR__.'/AppKernel.php';
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
class AppCache extends HttpCache
MadaraUchiha / mysql_comment.markdown
Last active May 9, 2019
Don't use MySQL functions in PHP - Comment for Stack Overflow
View mysql_comment.markdown
[**Please, don't use `mysql_*` functions in new code**]( They are no longer maintained [and are officially deprecated]( See the [**red box**]( Learn about [*prepared statements*]( instead, and use [PDO]( or [MySQLi]( - [this article]( will help you decide which. If you choose PDO, [here is a good tutorial](

Please, don't use mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.