<?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/php5</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 09 Jul 2008 04:32:57 GMT</pubDate>
<item>
<title>(PHP) Reemplazar tildes 2 - crishnakh</title>
<link>http://snipplr.com/view/6571/reemplazar-tildes-2/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 04 Jun 2008 11:17:14 GMT</pubDate>
<guid>http://snipplr.com/view/6571/reemplazar-tildes-2/</guid>
</item>
<item>
<title>(PHP) magic method call - iTony</title>
<link>http://snipplr.com/view/5593/magic-method-call/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 28 Mar 2008 11:22:31 GMT</pubDate>
<guid>http://snipplr.com/view/5593/magic-method-call/</guid>
</item>
<item>
<title>(PHP) Singleton class - cyrilbatillat</title>
<link>http://snipplr.com/view/4984/singleton-class/</link>
<description><![CDATA[ <p>Usage : $MonObjet = Single::GetInstance();</p> ]]></description>
<pubDate>Mon, 11 Feb 2008 09:43:54 GMT</pubDate>
<guid>http://snipplr.com/view/4984/singleton-class/</guid>
</item>
<item>
<title>(PHP) SMS/Email Weather Alert - johnself</title>
<link>http://snipplr.com/view/4917/smsemail-weather-alert/</link>
<description><![CDATA[ <p>In light of last nights tornado warnings here in TN, I thought it appropriate to post this little bit of code that I use to alert myself and others of dangerous weather conditions via SMS/Email alerts.

I run this through cron at Dreamhost without issues.</p> ]]></description>
<pubDate>Wed, 06 Feb 2008 09:33:05 GMT</pubDate>
<guid>http://snipplr.com/view/4917/smsemail-weather-alert/</guid>
</item>
<item>
<title>(PHP) Validar email php5 - lisandro</title>
<link>http://snipplr.com/view/4664/validar-email-php5/</link>
<description><![CDATA[ <p>En la pagina hay mas info sobre otras funciones de validacion para php5</p> ]]></description>
<pubDate>Sat, 19 Jan 2008 13:15:37 GMT</pubDate>
<guid>http://snipplr.com/view/4664/validar-email-php5/</guid>
</item>
<item>
<title>(PHP) Show messages about errors using generating JavaScript. - LoRd1990</title>
<link>http://snipplr.com/view/4597/show-messages-about-errors-using-generating-javascript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 15 Jan 2008 10:13:37 GMT</pubDate>
<guid>http://snipplr.com/view/4597/show-messages-about-errors-using-generating-javascript/</guid>
</item>
<item>
<title>(PHP) Functions package to SpeedUp web-forms creating process. V.0.2Beta - LoRd1990</title>
<link>http://snipplr.com/view/4596/functions-package-to-speedup-webforms-creating-process-v02beta/</link>
<description><![CDATA[ <p>If you had seen some errors in the code, please send me notice about it on the: LoRd1990@gmail.com

Thanks, K.Karpenko</p> ]]></description>
<pubDate>Tue, 15 Jan 2008 10:08:01 GMT</pubDate>
<guid>http://snipplr.com/view/4596/functions-package-to-speedup-webforms-creating-process-v02beta/</guid>
</item>
<item>
<title>(PHP) PHP5 recursive URL-crawler - LoRd1990</title>
<link>http://snipplr.com/view/4595/php5-recursive-urlcrawler/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 15 Jan 2008 10:01:20 GMT</pubDate>
<guid>http://snipplr.com/view/4595/php5-recursive-urlcrawler/</guid>
</item>
<item>
<title>(PHP) Usefull functions to work with MySQL under PHP5 - LoRd1990</title>
<link>http://snipplr.com/view/4594/usefull-functions-to-work-with-mysql-under-php5/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 15 Jan 2008 09:55:45 GMT</pubDate>
<guid>http://snipplr.com/view/4594/usefull-functions-to-work-with-mysql-under-php5/</guid>
</item>
<item>
<title>(PHP) Treat variable as a file - micmath</title>
<link>http://snipplr.com/view/4051/treat-variable-as-a-file/</link>
<description><![CDATA[ <p>Occasionally you'll have a string and need to pass it to a function that will only take a filehandle (such as fgetcsv). Here's how to create a virtual filehandle in memory.</p> ]]></description>
<pubDate>Tue, 30 Oct 2007 18:58:45 GMT</pubDate>
<guid>http://snipplr.com/view/4051/treat-variable-as-a-file/</guid>
</item>
<item>
<title>(PHP) using autoload with PEAR - cholmon</title>
<link>http://snipplr.com/view/3638/using-autoload-with-pear/</link>
<description><![CDATA[ <p>__autoload is often used to load class files from a specific user-defined directory.  by simply adding the user-defined directory to the include_path, however, autoload can be used to load user class files as well as PEAR class files.  Assuming the PEAR naming convention is adhered to for the user defined classes.</p> ]]></description>
<pubDate>Wed, 05 Sep 2007 12:47:34 GMT</pubDate>
<guid>http://snipplr.com/view/3638/using-autoload-with-pear/</guid>
</item>
<item>
<title>(PHP) PHP5 CSV Iterator - koncept</title>
<link>http://snipplr.com/view/1986/php5-csv-iterator/</link>
<description><![CDATA[ <p>I think I got this one off php.net. I wish I could thank the author properly because this has been a real helper!</p> ]]></description>
<pubDate>Tue, 16 Jan 2007 20:27:38 GMT</pubDate>
<guid>http://snipplr.com/view/1986/php5-csv-iterator/</guid>
</item>
<item>
<title>(PHP) PHP Email Validation - koncept</title>
<link>http://snipplr.com/view/1983/php-email-validation/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 16 Jan 2007 18:36:56 GMT</pubDate>
<guid>http://snipplr.com/view/1983/php-email-validation/</guid>
</item>
<item>
<title>(PHP) PHP5 Singleton Design Pattern - koncept</title>
<link>http://snipplr.com/view/1982/php5-singleton-design-pattern/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 16 Jan 2007 18:27:48 GMT</pubDate>
<guid>http://snipplr.com/view/1982/php5-singleton-design-pattern/</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) PHP5 Constant Class - ekobudisetiyo</title>
<link>http://snipplr.com/view/1283/php5-constant-class/</link>
<description><![CDATA[ <p>Usage:

$constant = new constant();
$constant->test = 'abcd';
$constant->test = '1234';
echo $constant->test;  // out put -> 'abcd'</p> ]]></description>
<pubDate>Tue, 03 Oct 2006 05:14:46 GMT</pubDate>
<guid>http://snipplr.com/view/1283/php5-constant-class/</guid>
</item>
<item>
<title>(PHP) PHP Singleton pattern - px</title>
<link>http://snipplr.com/view/776/php-singleton-pattern/</link>
<description><![CDATA[ <p>A single Helper method for all classes</p> ]]></description>
<pubDate>Fri, 11 Aug 2006 01:23:46 GMT</pubDate>
<guid>http://snipplr.com/view/776/php-singleton-pattern/</guid>
</item>
<item>
<title>(PHP) Speed Test: strcmp vs === - mthorn</title>
<link>http://snipplr.com/view/758/speed-test-strcmp-vs-/</link>
<description><![CDATA[ <p>strcmp with matching strings took 0.207852 seconds
strcmp with non-matching strings took 0.215276 seconds
=== with matching strings took 0.067122 seconds
=== with non-matching strings took 0.057305 seconds

=== is the clear winner. Function calls are always slower than operators. This was with PHP5, may be different for earlier versions. Not sure about the memory impact but I assume it's less since the strings do not have to be copied for the function call.</p> ]]></description>
<pubDate>Wed, 09 Aug 2006 09:23:15 GMT</pubDate>
<guid>http://snipplr.com/view/758/speed-test-strcmp-vs-/</guid>
</item>
<item>
<title>(PHP) PHP5 Singleton pattern - px</title>
<link>http://snipplr.com/view/617/php5-singleton-pattern/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 01 Aug 2006 01:59:17 GMT</pubDate>
<guid>http://snipplr.com/view/617/php5-singleton-pattern/</guid>
</item>
<item>
<title>(PHP) PHP5 Singleton Class - ekobudisetiyo</title>
<link>http://snipplr.com/view/414/php5-singleton-class/</link>
<description><![CDATA[ <p>Actually Singleton Class in PHP5 is very easy.
Usage:</p> ]]></description>
<pubDate>Fri, 14 Jul 2006 04:28:08 GMT</pubDate>
<guid>http://snipplr.com/view/414/php5-singleton-class/</guid>
</item>
</channel>
</rss>