<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/injection</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 06 Sep 2008 19:31:49 GMT</pubDate>
<item>
<title>(PHP) PHP escape for SQL - wbowers</title>
<link>http://snipplr.com/view/5331/php-escape-for-sql/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 09 Mar 2008 01:27:06 GMT</pubDate>
<guid>http://snipplr.com/view/5331/php-escape-for-sql/</guid>
</item>
<item>
<title>(PHP) Prevent SQL Injection - engel</title>
<link>http://snipplr.com/view/4205/prevent-sql-injection/</link>
<description><![CDATA[ <p>Pass a user-inputted variable to this function in order to prevent SQL injection. Example:

mysql_query("INSERT INTO table VALUES('" . sql_sanitize($_POST["variable") . "')");

Instead of:

mysql_query("INSERT INTO table VALUES('" . $_POST["variable"] . "'");</p> ]]></description>
<pubDate>Wed, 28 Nov 2007 09:25:01 GMT</pubDate>
<guid>http://snipplr.com/view/4205/prevent-sql-injection/</guid>
</item>
<item>
<title>(PHP) clean user input data ( GET, POST, COOKIE ) - peteypablonz</title>
<link>http://snipplr.com/view/4165/clean-user-input-data--get-post-cookie-/</link>
<description><![CDATA[ <p>Created for my own purposes, thought I'd share though ;)

copy paste at the top of your file and it does the magic :)</p> ]]></description>
<pubDate>Wed, 21 Nov 2007 03:57:32 GMT</pubDate>
<guid>http://snipplr.com/view/4165/clean-user-input-data--get-post-cookie-/</guid>
</item>
<item>
<title>(PHP) PHP - Limpiar inyección sql - nicolaspar</title>
<link>http://snipplr.com/view/1915/php--limpiar-inyeccin-sql/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 03 Jan 2007 11:03:13 GMT</pubDate>
<guid>http://snipplr.com/view/1915/php--limpiar-inyeccin-sql/</guid>
</item>
<item>
<title>(PHP) The Sterilizer - Vanish</title>
<link>http://snipplr.com/view/1764/the-sterilizer/</link>
<description><![CDATA[ <p>This function is used to cleanse user input data before creating queries to prevent SQL Injection attacks. This should also work to prevent XSS attempts through user input as well.</p> ]]></description>
<pubDate>Thu, 07 Dec 2006 11:58:00 GMT</pubDate>
<guid>http://snipplr.com/view/1764/the-sterilizer/</guid>
</item>
<item>
<title>(PHP) FuseLogic - Lite version of Dependency Injection - ekobudisetiyo</title>
<link>http://snipplr.com/view/342/fuselogic--lite-version-of-dependency-injection/</link>
<description><![CDATA[ <p>Very usefull lite dependency injection for PHP5.
Usage:

di exends fuselogic_container()
{
   function __construct()
   {
      parant::__construct(__FILE__);
   }
}

safe this to the folder with others class with name "class.class_name.php'
then you can do like bellow

$di = new di();
$c1 = $di->class_x; //singleton
$c2 = $di->class_x; //singleton
$c3 = $di->class_x(); //not singleton</p> ]]></description>
<pubDate>Tue, 11 Jul 2006 00:31:43 GMT</pubDate>
<guid>http://snipplr.com/view/342/fuselogic--lite-version-of-dependency-injection/</guid>
</item>
</channel>
</rss>