<?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/favorites/liamchapman</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 05:00:03 GMT</pubDate>
<item>
<title>(PHP) Perfect cURL Function - liamchapman</title>
<link>http://snipplr.com/view/51425/perfect-curl-function/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 01 Apr 2011 14:09:39 GMT</pubDate>
<guid>http://snipplr.com/view/51425/perfect-curl-function/</guid>
</item>
<item>
<title>(PHP) Random PAssword Generator - liamchapman</title>
<link>http://snipplr.com/view/43481/random-password-generator/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 03 Nov 2010 16:57:36 GMT</pubDate>
<guid>http://snipplr.com/view/43481/random-password-generator/</guid>
</item>
<item>
<title>(JavaScript) foreach | Javascript - liamchapman</title>
<link>http://snipplr.com/view/43478/foreach--javascript/</link>
<description><![CDATA[ <p>I should've wrote this function a LONGGG time ago.

foreach($myArray, function($k, $v){
   console.log($k + " :: " + $v);
});</p> ]]></description>
<pubDate>Wed, 03 Nov 2010 13:36:52 GMT</pubDate>
<guid>http://snipplr.com/view/43478/foreach--javascript/</guid>
</item>
<item>
<title>(PHP) MySQLi convert a result set to an HTML table - liamchapman</title>
<link>http://snipplr.com/view/27470/mysqli-convert-a-result-set-to-an-html-table/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 01 Feb 2010 05:47:27 GMT</pubDate>
<guid>http://snipplr.com/view/27470/mysqli-convert-a-result-set-to-an-html-table/</guid>
</item>
<item>
<title>(PHP) MySQLi convert a result set to CSV or to JSON - liamchapman</title>
<link>http://snipplr.com/view/27469/mysqli-convert-a-result-set-to-csv-or-to-json/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 01 Feb 2010 05:45:29 GMT</pubDate>
<guid>http://snipplr.com/view/27469/mysqli-convert-a-result-set-to-csv-or-to-json/</guid>
</item>
<item>
<title>(PHP) PHP bot that retrieves the text of a page with CURL - liamchapman</title>
<link>http://snipplr.com/view/26553/php-bot-that-retrieves-the-text-of-a-page-with-curl/</link>
<description><![CDATA[ <p>I’ve found this nice small bot on the www.php.net site, thanks to the author of the script on the preg_replace page.
This bot returns the text content of a url and it could be used to take text from a site and find relevant words to search.</p> ]]></description>
<pubDate>Sat, 16 Jan 2010 09:06:48 GMT</pubDate>
<guid>http://snipplr.com/view/26553/php-bot-that-retrieves-the-text-of-a-page-with-curl/</guid>
</item>
<item>
<title>(PHP) Check if File Exists / Append Number to Name - liamchapman</title>
<link>http://snipplr.com/view/21457/check-if-file-exists--append-number-to-name/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 19 Oct 2009 11:45:06 GMT</pubDate>
<guid>http://snipplr.com/view/21457/check-if-file-exists--append-number-to-name/</guid>
</item>
<item>
<title>(JavaScript) javascript copy text to clipborad - liamchapman</title>
<link>http://snipplr.com/view/6450/javascript-copy-text-to-clipborad/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 25 May 2008 08:14:43 GMT</pubDate>
<guid>http://snipplr.com/view/6450/javascript-copy-text-to-clipborad/</guid>
</item>
<item>
<title>(PHP) Gzipping your CSS - liamchapman</title>
<link>http://snipplr.com/view/5024/gzipping-your-css/</link>
<description><![CDATA[ <p>CSS files for larger sites can become pretty large themselves. Gzipping or compressing these files has shown to provide a reduction in the neighborhood of 70-80% of the original file size, a fairly significant 'weight loss'.</p> ]]></description>
<pubDate>Tue, 12 Feb 2008 14:08:32 GMT</pubDate>
<guid>http://snipplr.com/view/5024/gzipping-your-css/</guid>
</item>
<item>
<title>(PHP) PHP5 recursive URL-crawler - liamchapman</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) Nice URLS PHP .htaccess - liamchapman</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) Copyright Year - liamchapman</title>
<link>http://snipplr.com/view/4549/copyright-year/</link>
<description><![CDATA[ <p>Display correctly the Copyright advice</p> ]]></description>
<pubDate>Sun, 13 Jan 2008 20:16:59 GMT</pubDate>
<guid>http://snipplr.com/view/4549/copyright-year/</guid>
</item>
<item>
<title>(PHP) Getting real IP address in PHP - liamchapman</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) Cerate zip files PHP - liamchapman</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 - liamchapman</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) 301 Redirect Google Safe - liamchapman</title>
<link>http://snipplr.com/view/2491/301-redirect-google-safe/</link>
<description><![CDATA[ <p>This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let Google know your address has changed.</p> ]]></description>
<pubDate>Mon, 16 Apr 2007 21:08:19 GMT</pubDate>
<guid>http://snipplr.com/view/2491/301-redirect-google-safe/</guid>
</item>
<item>
<title>(PHP) PHP Tag Cloud Based on Word Frequency - liamchapman</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) Check for AJAX Request - liamchapman</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>
<item>
<title>(CSS) Handy CSS Debug Snippet - liamchapman</title>
<link>http://snipplr.com/view/746/handy-css-debug-snippet/</link>
<description><![CDATA[ <p>Great little debuging snippet found while browsing. The code adds different coloured borders to the assets depending on its level. Leave commented out if not needed.</p> ]]></description>
<pubDate>Mon, 07 Aug 2006 13:30:38 GMT</pubDate>
<guid>http://snipplr.com/view/746/handy-css-debug-snippet/</guid>
</item>
<item>
<title>(HTML) Standard Compliant Way to Open a New Page (no target tag) - liamchapman</title>
<link>http://snipplr.com/view/282/standard-compliant-way-to-open-a-new-page-no-target-tag/</link>
<description><![CDATA[ <p>Very simple standard compliant way of opening a page in a new window. Since XHTML 1.0 Strict doesn't allow the target attribute in the  tag. This method isn't recommended, use the DOM folks! See "Standard Compliant Way to Open a New Page Function" in my other snippets of code.</p> ]]></description>
<pubDate>Sat, 08 Jul 2006 13:30:23 GMT</pubDate>
<guid>http://snipplr.com/view/282/standard-compliant-way-to-open-a-new-page-no-target-tag/</guid>
</item>
</channel>
</rss>