<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 06:16:21 +0000</lastBuildDate>
    <item>
      <title>(PHP) Convert Twitter API Datetime to MySQL Datetime Format - aristoworks</title>
      <link>https://snipplr.com/view/59869/convert-twitter-api-datetime-to-mysql-datetime-format</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Mon, 17 Oct 2011 00:51:40 UTC</pubDate>
      <guid>https://snipplr.com/view/59869/convert-twitter-api-datetime-to-mysql-datetime-format</guid>
    </item>
    <item>
      <title>(PHP) Convert Seconds To HH:MM:SS - aristoworks</title>
      <link>https://snipplr.com/view/58732/convert-seconds-to-hhmmss</link>
      <description>&lt;p&gt;This came in handy when I was working with Hour / Minute / Second dropdown on a page.&lt;/p&gt;</description>
      <pubDate>Fri, 16 Sep 2011 06:13:27 UTC</pubDate>
      <guid>https://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 - aristoworks</title>
      <link>https://snipplr.com/view/51465/find-the-number-of-a-week-in-a-month-for-a-given-date</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Sun, 03 Apr 2011 04:15:36 UTC</pubDate>
      <guid>https://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 - aristoworks</title>
      <link>https://snipplr.com/view/26156/paginate-paragraphs--show-certain-number-of-paragraphs-per-page</link>
      <description>&lt;p&gt;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.&#13;
&#13;
Please email code -at- aristoworks.com if you need some clarification on how to use this.&lt;/p&gt;</description>
      <pubDate>Fri, 08 Jan 2010 19:08:11 UTC</pubDate>
      <guid>https://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. - aristoworks</title>
      <link>https://snipplr.com/view/26090/retrieve-all-of-the-mondays-for-a-given-year</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Thu, 07 Jan 2010 14:52:23 UTC</pubDate>
      <guid>https://snipplr.com/view/26090/retrieve-all-of-the-mondays-for-a-given-year</guid>
    </item>
    <item>
      <title>(PHP) Simple PHP Image Crop - aristoworks</title>
      <link>https://snipplr.com/view/14574/simple-php-image-crop</link>
      <description>&lt;p&gt;This is a simple script that will allow you to crop an image that you upload from a form.&lt;/p&gt;</description>
      <pubDate>Wed, 29 Apr 2009 10:48:16 UTC</pubDate>
      <guid>https://snipplr.com/view/14574/simple-php-image-crop</guid>
    </item>
    <item>
      <title>(jQuery) jQuery - Toggle Multiple Elements - aristoworks</title>
      <link>https://snipplr.com/view/13946/jquery--toggle-multiple-elements</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Fri, 10 Apr 2009 14:02:44 UTC</pubDate>
      <guid>https://snipplr.com/view/13946/jquery--toggle-multiple-elements</guid>
    </item>
    <item>
      <title>(PHP) PHP Firefox Detector - aristoworks</title>
      <link>https://snipplr.com/view/10659/php-firefox-detector</link>
      <description>&lt;p&gt;This handy little script will allow you to detect whether or not a user is running FireFox as their browser.&lt;/p&gt;</description>
      <pubDate>Tue, 23 Dec 2008 19:54:10 UTC</pubDate>
      <guid>https://snipplr.com/view/10659/php-firefox-detector</guid>
    </item>
    <item>
      <title>(JavaScript) Select All Checkboxes Based On Class - aristoworks</title>
      <link>https://snipplr.com/view/8299/select-all-checkboxes-based-on-class</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Wed, 10 Sep 2008 20:41:04 UTC</pubDate>
      <guid>https://snipplr.com/view/8299/select-all-checkboxes-based-on-class</guid>
    </item>
    <item>
      <title>(PHP) Clean Out A Folder - Remove A Folders Complete Contents - aristoworks</title>
      <link>https://snipplr.com/view/7973/clean-out-a-folder--remove-a-folders-complete-contents</link>
      <description>&lt;p&gt;This is a simple function that will take a folder path and remove all of its contents including files and directories.&lt;/p&gt;</description>
      <pubDate>Thu, 21 Aug 2008 14:41:00 UTC</pubDate>
      <guid>https://snipplr.com/view/7973/clean-out-a-folder--remove-a-folders-complete-contents</guid>
    </item>
    <item>
      <title>(JavaScript) Change Two iFrames With One Link - aristoworks</title>
      <link>https://snipplr.com/view/7514/change-two-iframes-with-one-link</link>
      <description>&lt;p&gt;This simple little snippet will allow you to change two iframes with the click of just one link.&lt;/p&gt;</description>
      <pubDate>Fri, 25 Jul 2008 20:13:23 UTC</pubDate>
      <guid>https://snipplr.com/view/7514/change-two-iframes-with-one-link</guid>
    </item>
    <item>
      <title>(PHP) Disabling PHP Magic Quotes via .htaccess - aristoworks</title>
      <link>https://snipplr.com/view/7477/disabling-php-magic-quotes-via-htaccess</link>
      <description>&lt;p&gt;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&lt;/p&gt;</description>
      <pubDate>Thu, 24 Jul 2008 10:26:22 UTC</pubDate>
      <guid>https://snipplr.com/view/7477/disabling-php-magic-quotes-via-htaccess</guid>
    </item>
    <item>
      <title>(PHP) PHP (RegEx) IP Address Validation - aristoworks</title>
      <link>https://snipplr.com/view/7047/php-regex-ip-address-validation</link>
      <description>&lt;p&gt;A simple method of validating an IP address using PHP and regular expressions&lt;/p&gt;</description>
      <pubDate>Tue, 01 Jul 2008 09:37:59 UTC</pubDate>
      <guid>https://snipplr.com/view/7047/php-regex-ip-address-validation</guid>
    </item>
    <item>
      <title>(PHP) PHP (RegEx) Zip Code Validation - aristoworks</title>
      <link>https://snipplr.com/view/7046/php-regex-zip-code-validation</link>
      <description>&lt;p&gt;This is a simple method of validating a 9-digit zip code using PHP and regular expressions&lt;/p&gt;</description>
      <pubDate>Tue, 01 Jul 2008 09:36:35 UTC</pubDate>
      <guid>https://snipplr.com/view/7046/php-regex-zip-code-validation</guid>
    </item>
    <item>
      <title>(PHP) PHP (RegEx) Email Address Validation - aristoworks</title>
      <link>https://snipplr.com/view/7045/php-regex-email-address-validation</link>
      <description>&lt;p&gt;A simple method of validating an email address using PHP and regular expressions&lt;/p&gt;</description>
      <pubDate>Tue, 01 Jul 2008 09:34:49 UTC</pubDate>
      <guid>https://snipplr.com/view/7045/php-regex-email-address-validation</guid>
    </item>
    <item>
      <title>(PHP) PHP (RegEx) Telephone Number Validation - aristoworks</title>
      <link>https://snipplr.com/view/7044/php-regex-telephone-number-validation</link>
      <description>&lt;p&gt;A simple method of validating a telephone number using regular expressions and PHP&lt;/p&gt;</description>
      <pubDate>Tue, 01 Jul 2008 09:33:24 UTC</pubDate>
      <guid>https://snipplr.com/view/7044/php-regex-telephone-number-validation</guid>
    </item>
  </channel>
</rss>
