<?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/skywalker</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 01 Dec 2008 18:59:30 GMT</pubDate>
<item>
<title>(PHP) PHP: Sending Email (Text/HTML/Attachments) - skywalker</title>
<link>http://snipplr.com/view/6053/php-sending-email-texthtmlattachments/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 29 Apr 2008 15:15:43 GMT</pubDate>
<guid>http://snipplr.com/view/6053/php-sending-email-texthtmlattachments/</guid>
</item>
<item>
<title>(PHP) Remove any characters that are not numbers or letters - skywalker</title>
<link>http://snipplr.com/view/5480/remove-any-characters-that-are-not-numbers-or-letters/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 18 Mar 2008 10:05:54 GMT</pubDate>
<guid>http://snipplr.com/view/5480/remove-any-characters-that-are-not-numbers-or-letters/</guid>
</item>
<item>
<title>(Apache) Pretty permalinks on for Wordpress running on Apache - skywalker</title>
<link>http://snipplr.com/view/4863/pretty-permalinks-on-for-wordpress-running-on-apache/</link>
<description><![CDATA[ <p>Add this to an .htaccess file.</p> ]]></description>
<pubDate>Thu, 31 Jan 2008 17:13:16 GMT</pubDate>
<guid>http://snipplr.com/view/4863/pretty-permalinks-on-for-wordpress-running-on-apache/</guid>
</item>
<item>
<title>(HTML) attach style and script to an ID - skywalker</title>
<link>http://snipplr.com/view/4755/attach-style-and-script-to-an-id/</link>
<description><![CDATA[ <p>Get style and scripts (onclick, onmouseover, etc) out of tags.</p> ]]></description>
<pubDate>Thu, 24 Jan 2008 07:49:23 GMT</pubDate>
<guid>http://snipplr.com/view/4755/attach-style-and-script-to-an-id/</guid>
</item>
<item>
<title>(PHP) Zend Framework htaccess - skywalker</title>
<link>http://snipplr.com/view/4722/zend-framework-htaccess/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 22 Jan 2008 01:19:48 GMT</pubDate>
<guid>http://snipplr.com/view/4722/zend-framework-htaccess/</guid>
</item>
<item>
<title>(Regular Expression) remove all non-number characters - skywalker</title>
<link>http://snipplr.com/view/4700/remove-all-nonnumber-characters/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 21 Jan 2008 08:17:48 GMT</pubDate>
<guid>http://snipplr.com/view/4700/remove-all-nonnumber-characters/</guid>
</item>
<item>
<title>(PHP) Image Size Restrainer - skywalker</title>
<link>http://snipplr.com/view/4698/image-size-restrainer/</link>
<description><![CDATA[ <p>This function will return the height and width of an image that will change if the height/width is greater than the maximum supplied width and height.</p> ]]></description>
<pubDate>Mon, 21 Jan 2008 01:19:20 GMT</pubDate>
<guid>http://snipplr.com/view/4698/image-size-restrainer/</guid>
</item>
<item>
<title>(ActionScript) Custom Right Click Menu - Flash AS 2.0 - skywalker</title>
<link>http://snipplr.com/view/4611/custom-right-click-menu--flash-as-20/</link>
<description><![CDATA[ <p>This is something I search for every time I need it.  It is taken from: Oleg Lazarenko.</p> ]]></description>
<pubDate>Wed, 16 Jan 2008 09:27:55 GMT</pubDate>
<guid>http://snipplr.com/view/4611/custom-right-click-menu--flash-as-20/</guid>
</item>
<item>
<title>(CSS) Preloading div - skywalker</title>
<link>http://snipplr.com/view/4586/preloading-div/</link>
<description><![CDATA[ <p>CSS and Javascript to show a message "Loading" when click on "save form button"</p> ]]></description>
<pubDate>Tue, 15 Jan 2008 05:56:58 GMT</pubDate>
<guid>http://snipplr.com/view/4586/preloading-div/</guid>
</item>
<item>
<title>(PHP) Getting real IP address in PHP - skywalker</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) get time length of flash video file - skywalker</title>
<link>http://snipplr.com/view/4420/get-time-length-of-flash-video-file/</link>
<description><![CDATA[ <p>Credit goes to http://www.retoxmedia.com for this</p> ]]></description>
<pubDate>Thu, 27 Dec 2007 10:31:36 GMT</pubDate>
<guid>http://snipplr.com/view/4420/get-time-length-of-flash-video-file/</guid>
</item>
<item>
<title>(PHP) converting MYSQl result into csv file format - skywalker</title>
<link>http://snipplr.com/view/4419/converting-mysql-result-into-csv-file-format/</link>
<description><![CDATA[ <p>when im running the program the browser forced to download the file which i convert using php code(it askng do u want to download). what i want is simply run the program and convert the file as csv and csv file has to open automatically(no need of downloading dialouge box). plz let me know the solution well in advance.</p> ]]></description>
<pubDate>Thu, 27 Dec 2007 05:46:15 GMT</pubDate>
<guid>http://snipplr.com/view/4419/converting-mysql-result-into-csv-file-format/</guid>
</item>
<item>
<title>(PHP) Hace Script / Ago Script - skywalker</title>
<link>http://snipplr.com/view/4367/hace-script--ago-script/</link>
<description><![CDATA[ <p>Hace Script / Ago Script
if we call with a timestamp of a month ago, he print "Hace 1 mes". If you want this in english should traduction. Sorry my english

http://snippets.dzone.com/posts/show/4674</p> ]]></description>
<pubDate>Sun, 16 Dec 2007 01:29:55 GMT</pubDate>
<guid>http://snipplr.com/view/4367/hace-script--ago-script/</guid>
</item>
<item>
<title>(PHP) password protect - skywalker</title>
<link>http://snipplr.com/view/4323/password-protect/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 13 Dec 2007 15:54:20 GMT</pubDate>
<guid>http://snipplr.com/view/4323/password-protect/</guid>
</item>
<item>
<title>(PHP) Clean URL - skywalker</title>
<link>http://snipplr.com/view/4227/clean-url/</link>
<description><![CDATA[ <p>.htaccess:

RewriteEngine On

RewriteBase /


#images.php, browse.php, index.php
RewriteRule ^(images|browse|index)(/.*)?$ $1.php
#above can obviously be expanded

#GoDaddy users add this to the beginning of your htaccess or you will throw an error
Options +MultiViews +FollowSymLinks
#make sure you wait about 5-10 minutes after uploading the revised .htaccess, for some reason, GoDaddy takes a few minutes to revise the .htaccess</p> ]]></description>
<pubDate>Sat, 01 Dec 2007 11:59:31 GMT</pubDate>
<guid>http://snipplr.com/view/4227/clean-url/</guid>
</item>
<item>
<title>(PHP) Prevent SQL Injection - skywalker</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) Alternating MYSQL table row colour - skywalker</title>
<link>http://snipplr.com/view/4177/alternating-mysql-table-row-colour/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 23 Nov 2007 03:09:32 GMT</pubDate>
<guid>http://snipplr.com/view/4177/alternating-mysql-table-row-colour/</guid>
</item>
<item>
<title>(PHP) php paging - skywalker</title>
<link>http://snipplr.com/view/4176/php-paging/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 23 Nov 2007 02:01:04 GMT</pubDate>
<guid>http://snipplr.com/view/4176/php-paging/</guid>
</item>
<item>
<title>(PHP) clean user input data ( GET, POST, COOKIE ) - skywalker</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) check for a valid url - skywalker</title>
<link>http://snipplr.com/view/4152/check-for-a-valid-url/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 16 Nov 2007 23:31:26 GMT</pubDate>
<guid>http://snipplr.com/view/4152/check-for-a-valid-url/</guid>
</item>
</channel>
</rss>