<?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 21:55:06 +0000</lastBuildDate>
    <item>
      <title>(PHP) CSV handler class - TimoZachi</title>
      <link>https://snipplr.com/view/66824/csv-handler-class</link>
      <description>&lt;p&gt;Class that convert arrays to csv format, downloads CSV files and saves to disk on server.&lt;/p&gt;</description>
      <pubDate>Tue, 21 Aug 2012 04:53:02 UTC</pubDate>
      <guid>https://snipplr.com/view/66824/csv-handler-class</guid>
    </item>
    <item>
      <title>(PHP) Prevent sql injection in LIKE queries - TimoZachi</title>
      <link>https://snipplr.com/view/66319/prevent-sql-injection-in-like-queries</link>
      <description>&lt;p&gt;Function to prevent sql injection in Like queries, where the characters '_' and '%' can be dangerous.&lt;/p&gt;</description>
      <pubDate>Wed, 25 Jul 2012 08:37:04 UTC</pubDate>
      <guid>https://snipplr.com/view/66319/prevent-sql-injection-in-like-queries</guid>
    </item>
    <item>
      <title>(PHP) Simple function for converting unix timestamp to user friendly date - TimoZachi</title>
      <link>https://snipplr.com/view/66087/simple-function-for-converting-unix-timestamp-to-user-friendly-date</link>
      <description>&lt;p&gt;A simple function for converting a php timestamp (integer) to a user frindly format. Examples: 10 Seconds ago, 4 Days ago. The function converts timestamp to U.F. format only if the timestamp is earlyer than one week. Otherwise it uses $dateFormat argument to display the date.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Jul 2012 02:03:31 UTC</pubDate>
      <guid>https://snipplr.com/view/66087/simple-function-for-converting-unix-timestamp-to-user-friendly-date</guid>
    </item>
    <item>
      <title>(PHP) PHP function to extract keywords from a string of text - TimoZachi</title>
      <link>https://snipplr.com/view/63015/php-function-to-extract-keywords-from-a-string-of-text</link>
      <description>&lt;p&gt;This is a function that receives a string as an argument (along with other config optional arguments) and locates all keywords (words that appear most) from that string, returning the keywords as an array or as a string separated by commas. The function works correctly, but i'm working on improving it, so any sugestions please comment.&lt;/p&gt;</description>
      <pubDate>Fri, 03 Feb 2012 04:10:30 UTC</pubDate>
      <guid>https://snipplr.com/view/63015/php-function-to-extract-keywords-from-a-string-of-text</guid>
    </item>
    <item>
      <title>(ActionScript 3) How to measure download speed (Kilobytes per second) in AS3 - TimoZachi</title>
      <link>https://snipplr.com/view/62034/how-to-measure-download-speed-kilobytes-per-second-in-as3</link>
      <description>&lt;p&gt;A simple snippet showing how to display download speed (Kilobytes per second or kbs/s) in flash timeline script (AS3). You can use Flash "Simulate Download" option for testing.&lt;/p&gt;</description>
      <pubDate>Wed, 21 Dec 2011 00:58:56 UTC</pubDate>
      <guid>https://snipplr.com/view/62034/how-to-measure-download-speed-kilobytes-per-second-in-as3</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 Class for formatting date like PHP function date - TimoZachi</title>
      <link>https://snipplr.com/view/58868/as3-class-for-formatting-date-like-php-function-date</link>
      <description>&lt;p&gt;A custom class for formatting dates, similar to PHP bult-in function "date".  The class also has some other date utils functions, like: dayOfYear, numberOfDaysInMonth, etc..&lt;/p&gt;</description>
      <pubDate>Wed, 21 Sep 2011 04:00:15 UTC</pubDate>
      <guid>https://snipplr.com/view/58868/as3-class-for-formatting-date-like-php-function-date</guid>
    </item>
    <item>
      <title>(PHP) SessCacher: Class for caching data through php session - TimoZachi</title>
      <link>https://snipplr.com/view/58628/sesscacher-class-for-caching-data-through-php-session</link>
      <description>&lt;p&gt;This is a custom class for caching results through php's session. The class can be used to cache anything, but i use it to cache mysql results so i don't have to get all the time the results by querying MySQL (wich may take a long time, especialy if  MySQL's server is not the same as PHP's server), increasing enormously performance. Since the database is in constant actualization, there is an optional parameter to limit the maximun number of times you want to reuse the cached data. The class is well commented with an example on how to use it bellow.&lt;/p&gt;</description>
      <pubDate>Tue, 13 Sep 2011 05:47:46 UTC</pubDate>
      <guid>https://snipplr.com/view/58628/sesscacher-class-for-caching-data-through-php-session</guid>
    </item>
    <item>
      <title>(PHP) Generate random caracters with random case and/or random digits - TimoZachi</title>
      <link>https://snipplr.com/view/58585/generate-random-caracters-with-random-case-andor-random-digits</link>
      <description>&lt;p&gt;A simple function that generates a string with random alphabet caracters (a to z) and/or digits. Note: the string generated is not guaranteed to be unique.&lt;/p&gt;</description>
      <pubDate>Sat, 10 Sep 2011 09:31:53 UTC</pubDate>
      <guid>https://snipplr.com/view/58585/generate-random-caracters-with-random-case-andor-random-digits</guid>
    </item>
    <item>
      <title>(PHP) Resize an image without distorting proportions (JPEG, GIF or PNG) - TimoZachi</title>
      <link>https://snipplr.com/view/58584/resize-an-image-without-distorting-proportions-jpeg-gif-or-png</link>
      <description>&lt;p&gt;A function that resizes an image to desired width and height, but does not distort the image proportions. Works for JPEG, GIF and PNG.&lt;/p&gt;</description>
      <pubDate>Sat, 10 Sep 2011 08:38:41 UTC</pubDate>
      <guid>https://snipplr.com/view/58584/resize-an-image-without-distorting-proportions-jpeg-gif-or-png</guid>
    </item>
    <item>
      <title>(PHP) Get All information from youtube video - TimoZachi</title>
      <link>https://snipplr.com/view/58573/get-all-information-from-youtube-video</link>
      <description>&lt;p&gt;This code snippet gets all information from a YouTube video (title, description, duration, thumbnail url, thumbnail width, thumbnail height, etc..) using the video id and YouTube API.&lt;/p&gt;</description>
      <pubDate>Sat, 10 Sep 2011 03:51:42 UTC</pubDate>
      <guid>https://snipplr.com/view/58573/get-all-information-from-youtube-video</guid>
    </item>
  </channel>
</rss>
