<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - aristoworks</title>
<link>http://snipplr.com/users/aristoworks</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 19:03:19 GMT</pubDate>
<item>
<title>(PHP) Convert Twitter API Datetime to MySQL Datetime Format</title>
<link>http://snipplr.com/view/59869/convert-twitter-api-datetime-to-mysql-datetime-format/</link>
<description><![CDATA[ <p>This is a very rudimentary function used to convert a Datetime delivered by the Twitter API to a format you can store in MySQL's datetime field.</p> ]]></description>
<pubDate>Mon, 17 Oct 2011 00:51:40 GMT</pubDate>
<guid>http://snipplr.com/view/59869/convert-twitter-api-datetime-to-mysql-datetime-format/</guid>
</item>
<item>
<title>(PHP) Convert Seconds To HH:MM:SS</title>
<link>http://snipplr.com/view/58732/convert-seconds-to-hhmmss/</link>
<description><![CDATA[ <p>This came in handy when I was working with Hour / Minute / Second dropdown on a page.</p> ]]></description>
<pubDate>Fri, 16 Sep 2011 06:13:27 GMT</pubDate>
<guid>http://snipplr.com/view/58732/convert-seconds-to-hhmmss/</guid>
</item>
<item>
<title>(PHP) Find The Number Of A Week In A Month For A Given Date</title>
<link>http://snipplr.com/view/51465/find-the-number-of-a-week-in-a-month-for-a-given-date/</link>
<description><![CDATA[ <p>This simple function allows you to find a weeks position in the month based on a given date.  For instance I needed to alert the user their date was the "Second Week Of January" during a given month.  I may never use it again but it came in very handy for this particular project.</p> ]]></description>
<pubDate>Sun, 03 Apr 2011 04:15:36 GMT</pubDate>
<guid>http://snipplr.com/view/51465/find-the-number-of-a-week-in-a-month-for-a-given-date/</guid>
</item>
<item>
<title>(PHP) Paginate Paragraphs - Show Certain Number Of Paragraphs Per Page</title>
<link>http://snipplr.com/view/26156/paginate-paragraphs--show-certain-number-of-paragraphs-per-page/</link>
<description><![CDATA[ <p>I wrote this really quick and dirty script to paginate a very large chunk of text.  A client site was setup with the understanding their about page would consist of 5-6 paragraphs but their biography ended up being 60 paragraphs.  At the end of the day instead of breaking segments out into separate pages as stored in the database I kept it intact (including the way they edit it in the CMS) but this simple function paginates it only showing a certain number of paragraphs at a time.

Please email code -at- aristoworks.com if you need some clarification on how to use this.</p> ]]></description>
<pubDate>Fri, 08 Jan 2010 19:08:11 GMT</pubDate>
<guid>http://snipplr.com/view/26156/paginate-paragraphs--show-certain-number-of-paragraphs-per-page/</guid>
</item>
<item>
<title>(PHP) Retrieve All of the 'Monday's for a given year.</title>
<link>http://snipplr.com/view/26090/retrieve-all-of-the-mondays-for-a-given-year/</link>
<description><![CDATA[ <p>This is a simple function that will return an array of all the dates corresponding to the day 'Monday' for a given year.  It's pretty simple and may not be the cleanest way but it works for my purpose.</p> ]]></description>
<pubDate>Thu, 07 Jan 2010 14:52:23 GMT</pubDate>
<guid>http://snipplr.com/view/26090/retrieve-all-of-the-mondays-for-a-given-year/</guid>
</item>
<item>
<title>(PHP) Simple PHP Image Crop</title>
<link>http://snipplr.com/view/14574/simple-php-image-crop/</link>
<description><![CDATA[ <p>This is a simple script that will allow you to crop an image that you upload from a form.</p> ]]></description>
<pubDate>Wed, 29 Apr 2009 10:48:16 GMT</pubDate>
<guid>http://snipplr.com/view/14574/simple-php-image-crop/</guid>
</item>
<item>
<title>(jQuery) jQuery - Toggle Multiple Elements</title>
<link>http://snipplr.com/view/13946/jquery--toggle-multiple-elements/</link>
<description><![CDATA[ <p>I used this simple snippet to enable users to "View More Info" which was embedded in a div below each of a list of items.  This is different from many of the simple jQuery examples that only allow you to show/hide one particular div.</p> ]]></description>
<pubDate>Fri, 10 Apr 2009 14:02:44 GMT</pubDate>
<guid>http://snipplr.com/view/13946/jquery--toggle-multiple-elements/</guid>
</item>
<item>
<title>(PHP) PHP Firefox Detector</title>
<link>http://snipplr.com/view/10659/php-firefox-detector/</link>
<description><![CDATA[ <p>This handy little script will allow you to detect whether or not a user is running FireFox as their browser.</p> ]]></description>
<pubDate>Tue, 23 Dec 2008 19:54:10 GMT</pubDate>
<guid>http://snipplr.com/view/10659/php-firefox-detector/</guid>
</item>
<item>
<title>(JavaScript) Select All Checkboxes Based On Class</title>
<link>http://snipplr.com/view/8299/select-all-checkboxes-based-on-class/</link>
<description><![CDATA[ <p>This is a simple javascript snippet that will allow you to specify a particular class to a group of checkboxes and then select them all at once when you click the master checkbox.  This came in very handy for a store inventory script when I needed to select all of the models of a particular manufacturer.</p> ]]></description>
<pubDate>Wed, 10 Sep 2008 20:41:04 GMT</pubDate>
<guid>http://snipplr.com/view/8299/select-all-checkboxes-based-on-class/</guid>
</item>
<item>
<title>(PHP) Clean Out A Folder - Remove A Folders Complete Contents</title>
<link>http://snipplr.com/view/7973/clean-out-a-folder--remove-a-folders-complete-contents/</link>
<description><![CDATA[ <p>This is a simple function that will take a folder path and remove all of its contents including files and directories.</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 14:41:00 GMT</pubDate>
<guid>http://snipplr.com/view/7973/clean-out-a-folder--remove-a-folders-complete-contents/</guid>
</item>
<item>
<title>(JavaScript) Change Two iFrames With One Link</title>
<link>http://snipplr.com/view/7514/change-two-iframes-with-one-link/</link>
<description><![CDATA[ <p>This simple little snippet will allow you to change two iframes with the click of just one link.</p> ]]></description>
<pubDate>Fri, 25 Jul 2008 20:13:23 GMT</pubDate>
<guid>http://snipplr.com/view/7514/change-two-iframes-with-one-link/</guid>
</item>
<item>
<title>(PHP) Disabling PHP Magic Quotes via .htaccess</title>
<link>http://snipplr.com/view/7477/disabling-php-magic-quotes-via-htaccess/</link>
<description><![CDATA[ <p>Magic Quotes is a great feature of PHP but sometimes it can just get annoying.  It's simple enough to turn it off at the .ini and restart apache but here's a quick .htaccess workaround</p> ]]></description>
<pubDate>Thu, 24 Jul 2008 10:26:22 GMT</pubDate>
<guid>http://snipplr.com/view/7477/disabling-php-magic-quotes-via-htaccess/</guid>
</item>
<item>
<title>(PHP) PHP (RegEx) IP Address Validation</title>
<link>http://snipplr.com/view/7047/php-regex-ip-address-validation/</link>
<description><![CDATA[ <p>A simple method of validating an IP address using PHP and regular expressions</p> ]]></description>
<pubDate>Tue, 01 Jul 2008 09:37:59 GMT</pubDate>
<guid>http://snipplr.com/view/7047/php-regex-ip-address-validation/</guid>
</item>
<item>
<title>(PHP) PHP (RegEx) Zip Code Validation</title>
<link>http://snipplr.com/view/7046/php-regex-zip-code-validation/</link>
<description><![CDATA[ <p>This is a simple method of validating a 9-digit zip code using PHP and regular expressions</p> ]]></description>
<pubDate>Tue, 01 Jul 2008 09:36:35 GMT</pubDate>
<guid>http://snipplr.com/view/7046/php-regex-zip-code-validation/</guid>
</item>
<item>
<title>(PHP) PHP (RegEx) Email Address Validation</title>
<link>http://snipplr.com/view/7045/php-regex-email-address-validation/</link>
<description><![CDATA[ <p>A simple method of validating an email address using PHP and regular expressions</p> ]]></description>
<pubDate>Tue, 01 Jul 2008 09:34:49 GMT</pubDate>
<guid>http://snipplr.com/view/7045/php-regex-email-address-validation/</guid>
</item>
<item>
<title>(PHP) PHP (RegEx) Telephone Number Validation</title>
<link>http://snipplr.com/view/7044/php-regex-telephone-number-validation/</link>
<description><![CDATA[ <p>A simple method of validating a telephone number using regular expressions and PHP</p> ]]></description>
<pubDate>Tue, 01 Jul 2008 09:33:24 GMT</pubDate>
<guid>http://snipplr.com/view/7044/php-regex-telephone-number-validation/</guid>
</item>
</channel>
</rss>