<?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/popular/language/php</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 05:06:47 GMT</pubDate>
<item>
<title>(PHP) Check for valid email address - tylerhall</title>
<link>http://snipplr.com/view/2/check-for-valid-email-address/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 30 Nov -0001 00:00:00 GMT</pubDate>
<guid>http://snipplr.com/view/2/check-for-valid-email-address/</guid>
</item>
<item>
<title>(PHP) Nice URLS PHP .htaccess - Abe</title>
<link>http://snipplr.com/view/4562/nice-urls-php-htaccess/</link>
<description><![CDATA[ <p>You can combine them with this: http://snipplr.com/view/4848/underscore-strings/</p> ]]></description>
<pubDate>Mon, 14 Jan 2008 12:22:45 GMT</pubDate>
<guid>http://snipplr.com/view/4562/nice-urls-php-htaccess/</guid>
</item>
<item>
<title>(PHP) Login Class - tylerhall</title>
<link>http://snipplr.com/view/11/login-class/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 30 Nov -0001 00:00:00 GMT</pubDate>
<guid>http://snipplr.com/view/11/login-class/</guid>
</item>
<item>
<title>(PHP) Download file - luman</title>
<link>http://snipplr.com/view/205/download-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 03 Jul 2006 01:25:31 GMT</pubDate>
<guid>http://snipplr.com/view/205/download-file/</guid>
</item>
<item>
<title>(PHP) Anti-SQL Injection Function - llbbl</title>
<link>http://snipplr.com/view/2742/antisql-injection-function/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 27 May 2007 11:53:02 GMT</pubDate>
<guid>http://snipplr.com/view/2742/antisql-injection-function/</guid>
</item>
<item>
<title>(PHP) MySQL Dump - neogeek</title>
<link>http://snipplr.com/view/173/mysql-dump/</link>
<description><![CDATA[ <p>Creates a backup of a MySQL database in SQL format.</p> ]]></description>
<pubDate>Sat, 01 Jul 2006 10:00:19 GMT</pubDate>
<guid>http://snipplr.com/view/173/mysql-dump/</guid>
</item>
<item>
<title>(PHP) RSS Writer Class - tylerhall</title>
<link>http://snipplr.com/view/23/rss-writer-class/</link>
<description><![CDATA[ <p>Contains two classes. RSS and RSSItem. Create a new RSS object and then populate it with RSSItems. Supports enclosures (audio/video files).</p> ]]></description>
<pubDate>Wed, 30 Nov -0001 00:00:00 GMT</pubDate>
<guid>http://snipplr.com/view/23/rss-writer-class/</guid>
</item>
<item>
<title>(PHP) Simple MySQL Search Function - neogeek</title>
<link>http://snipplr.com/view/171/simple-mysql-search-function/</link>
<description><![CDATA[ <p>A quick and simple way to search a MySQL database. Example: mysql_search('items', 'title tags', isset($_GET['q'])?$_GET['q']:'', Array('columns'=>'*', 'method'=>'OR', 'extra_sql'=>'AND active = "true" ORDER BY id DESC'));</p> ]]></description>
<pubDate>Sat, 01 Jul 2006 09:55:37 GMT</pubDate>
<guid>http://snipplr.com/view/171/simple-mysql-search-function/</guid>
</item>
<item>
<title>(PHP) Php xml Parser - nicolaspar</title>
<link>http://snipplr.com/view/483/php-xml-parser/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 17 Jul 2006 11:42:30 GMT</pubDate>
<guid>http://snipplr.com/view/483/php-xml-parser/</guid>
</item>
<item>
<title>(PHP) Resize Image - tylerhall</title>
<link>http://snipplr.com/view/27/resize-image/</link>
<description><![CDATA[ <p>Creates a thumbnail from an existing image. $filename is the original filename, while $tmpname is the actual filesystem name (for example, the temporary filename used in a PHP upload). Returns an image resource which you can then output to the browser, or save to a file using imagejpg(), imagepng(), etc.</p> ]]></description>
<pubDate>Wed, 30 Nov -0001 00:00:00 GMT</pubDate>
<guid>http://snipplr.com/view/27/resize-image/</guid>
</item>
<item>
<title>(PHP) US States and World Countries Collection - neogeek</title>
<link>http://snipplr.com/view/169/us-states-and-world-countries-collection/</link>
<description><![CDATA[ <p>This is a collection of US States (Long and abbreviated names) and world countries. There are a few examples of usage below the collections.</p> ]]></description>
<pubDate>Sat, 01 Jul 2006 09:43:23 GMT</pubDate>
<guid>http://snipplr.com/view/169/us-states-and-world-countries-collection/</guid>
</item>
<item>
<title>(PHP) Getting real IP address in PHP - mifly</title>
<link>http://snipplr.com/view/4439/getting-real-ip-address-in-php/</link>
<description><![CDATA[ <p>Are you using $_SERVER['REMOTE_ADDR'] to find the the client's IP address? Well dude, you might be amazed to know that it may not return the true IP address of the client at all time. If your client is connected to the Internet through Proxy Server then $_SERVER['REMOTE_ADDR'] just returns the the IP address of the proxy server not of the client's machine. So here is a simple function in PHP to find the real IP address of the client's machine.</p> ]]></description>
<pubDate>Tue, 01 Jan 2008 11:02:20 GMT</pubDate>
<guid>http://snipplr.com/view/4439/getting-real-ip-address-in-php/</guid>
</item>
<item>
<title>(PHP) PHP Tag Cloud Based on Word Frequency - koncept</title>
<link>http://snipplr.com/view/2225/php-tag-cloud-based-on-word-frequency/</link>
<description><![CDATA[ <p>I was only responsible for wrapping a demo around the function. See URL for original script.</p> ]]></description>
<pubDate>Tue, 27 Feb 2007 20:40:24 GMT</pubDate>
<guid>http://snipplr.com/view/2225/php-tag-cloud-based-on-word-frequency/</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) FTP file upload example - hxseven</title>
<link>http://snipplr.com/view/807/ftp-file-upload-example/</link>
<description><![CDATA[ <p>Shows how to upload a single file to a FTP server.</p> ]]></description>
<pubDate>Mon, 14 Aug 2006 16:27:20 GMT</pubDate>
<guid>http://snipplr.com/view/807/ftp-file-upload-example/</guid>
</item>
<item>
<title>(PHP) Thumbs on fly - luman</title>
<link>http://snipplr.com/view/93/thumbs-on-fly/</link>
<description><![CDATA[ <p>Only JPG</p> ]]></description>
<pubDate>Thu, 29 Jun 2006 14:44:32 GMT</pubDate>
<guid>http://snipplr.com/view/93/thumbs-on-fly/</guid>
</item>
<item>
<title>(PHP) Calculate the Distance Between Two Coordinates (latitude, longitude) - tylerhall</title>
<link>http://snipplr.com/view/2531/calculate-the-distance-between-two-coordinates-latitude-longitude/</link>
<description><![CDATA[ <p>This PHP function calculates the distance between to pairs of latitude longitude coordinates. Returns the distance in miles or kilometers.</p> ]]></description>
<pubDate>Tue, 24 Apr 2007 11:46:36 GMT</pubDate>
<guid>http://snipplr.com/view/2531/calculate-the-distance-between-two-coordinates-latitude-longitude/</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) ckeckMail - luman</title>
<link>http://snipplr.com/view/69/ckeckmail/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 28 Jun 2006 15:34:21 GMT</pubDate>
<guid>http://snipplr.com/view/69/ckeckmail/</guid>
</item>
<item>
<title>(PHP) Create a thumbnail maintaining aspect ratio using GD - mthorn</title>
<link>http://snipplr.com/view/753/create-a-thumbnail-maintaining-aspect-ratio-using-gd/</link>
<description><![CDATA[ <p>Will create a thumnail no taller or wider than the supplied size. Also contains some tips for reading and writing images using GD.</p> ]]></description>
<pubDate>Wed, 09 Aug 2006 04:57:21 GMT</pubDate>
<guid>http://snipplr.com/view/753/create-a-thumbnail-maintaining-aspect-ratio-using-gd/</guid>
</item>
<item>
<title>(PHP) Format Phone Number - tylerhall</title>
<link>http://snipplr.com/view/25/format-phone-number/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 30 Nov -0001 00:00:00 GMT</pubDate>
<guid>http://snipplr.com/view/25/format-phone-number/</guid>
</item>
<item>
<title>(PHP) Test for a valid email address and MX records - tylerhall</title>
<link>http://snipplr.com/view/590/test-for-a-valid-email-address-and-mx-records/</link>
<description><![CDATA[ <p>Adapted from http://snipplr.com/view/69/ckeckmail/</p> ]]></description>
<pubDate>Wed, 26 Jul 2006 22:31:37 GMT</pubDate>
<guid>http://snipplr.com/view/590/test-for-a-valid-email-address-and-mx-records/</guid>
</item>
<item>
<title>(PHP) Cerate zip files PHP - lmcdougall</title>
<link>http://snipplr.com/view/3691/cerate-zip-files-php/</link>
<description><![CDATA[ <p>Ej:
$ziper = new zipfile();
$filename1 = 'images/imagen1.jpg';
$filename2 = 'images/imagen2.jpg';
$fileZip = 'images/imagen.zip';
$ziper->addFile(file_get_contents($filename1),$filename1);
$ziper->addFile(file_get_contents($filename2),$filename2);
$ziper->output($fileZip);</p> ]]></description>
<pubDate>Thu, 13 Sep 2007 15:53:02 GMT</pubDate>
<guid>http://snipplr.com/view/3691/cerate-zip-files-php/</guid>
</item>
<item>
<title>(PHP) MYSQL Database Class - emuen</title>
<link>http://snipplr.com/view/2739/mysql-database-class/</link>
<description><![CDATA[ <p>This class operates a range of mysql functions base on arrays.

Example:


Name: 
Description:</p> ]]></description>
<pubDate>Sun, 27 May 2007 06:25:38 GMT</pubDate>
<guid>http://snipplr.com/view/2739/mysql-database-class/</guid>
</item>
<item>
<title>(PHP) Check for AJAX Request - TC</title>
<link>http://snipplr.com/view/1060/check-for-ajax-request/</link>
<description><![CDATA[ <p>A simple function to check if the request comes from an AJAX XMLHttpRequest.
Use it if your page should behave differently when called from AJAX.
Comes from jquery mailing list: http://jquery.com/discuss/2006-June/006656/</p> ]]></description>
<pubDate>Tue, 12 Sep 2006 04:38:10 GMT</pubDate>
<guid>http://snipplr.com/view/1060/check-for-ajax-request/</guid>
</item>
</channel>
</rss>