<?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 17:47:06 +0000</lastBuildDate>
    <item>
      <title>(PHP) Convert numbers to words (Bulgarian language) - stz184</title>
      <link>https://snipplr.com/view/62021/convert-numbers-to-words-bulgarian-language</link>
      <description>&lt;p&gt;This function accept one parameter (integer or float) and returns the same number writed with words. Useful for currencies and invoices.&lt;/p&gt;</description>
      <pubDate>Tue, 20 Dec 2011 21:18:02 UTC</pubDate>
      <guid>https://snipplr.com/view/62021/convert-numbers-to-words-bulgarian-language</guid>
    </item>
    <item>
      <title>(PHP) List files in folder - stz184</title>
      <link>https://snipplr.com/view/59331/list-files-in-folder</link>
      <description>&lt;p&gt;This function accept one parameter - string, dir path. It will return a array, containing all files found in this and all its subfolders.&lt;/p&gt;</description>
      <pubDate>Sun, 02 Oct 2011 06:22:19 UTC</pubDate>
      <guid>https://snipplr.com/view/59331/list-files-in-folder</guid>
    </item>
    <item>
      <title>(PHP) Captcha with color protection - stz184</title>
      <link>https://snipplr.com/view/49700/captcha-with-color-protection</link>
      <description>&lt;p&gt;Tell the users to enter only the red or only the blue digits, not everything they see.&#13;
Most bots will try to enter everything, displayed on the images.&#13;
To check is captcha code entered correctly, use $_SESSION['captcha']['red'] to check the red digits only and $_SESSION['captcha']['blue'] to check the blue digits only. Good luck !&lt;/p&gt;</description>
      <pubDate>Sat, 26 Feb 2011 02:39:53 UTC</pubDate>
      <guid>https://snipplr.com/view/49700/captcha-with-color-protection</guid>
    </item>
    <item>
      <title>(PHP) Logging class (Log messages to a file) - stz184</title>
      <link>https://snipplr.com/view/49086/logging-class-log-messages-to-a-file</link>
      <description>&lt;p&gt;This class can log messages to a file. If the log file becomes too large (over 1MB), the class will archive it and will create new. If there are archives older than one month, they will be deleted automatically. &#13;
In the future versions I will add the opportunity to set max log size and max time to keep the archives.&lt;/p&gt;</description>
      <pubDate>Wed, 16 Feb 2011 19:34:54 UTC</pubDate>
      <guid>https://snipplr.com/view/49086/logging-class-log-messages-to-a-file</guid>
    </item>
    <item>
      <title>(PHP) Get file extension - stz184</title>
      <link>https://snipplr.com/view/42617/get-file-extension</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 20 Oct 2010 21:21:37 UTC</pubDate>
      <guid>https://snipplr.com/view/42617/get-file-extension</guid>
    </item>
    <item>
      <title>(PHP) Captcha with arithmetic's questions - stz184</title>
      <link>https://snipplr.com/view/42420/captcha-with-arithmetics-questions</link>
      <description>&lt;p&gt;Save this snippet as .php file and use it as image source.&#13;
This captcha code shows random arithmetic's questions.&#13;
You can download needed font from http://www.1001fonts.com/font_details.html?font_id=2939&lt;/p&gt;</description>
      <pubDate>Sun, 17 Oct 2010 02:33:31 UTC</pubDate>
      <guid>https://snipplr.com/view/42420/captcha-with-arithmetics-questions</guid>
    </item>
    <item>
      <title>(PHP) Delete non-empty directory and files with one function - stz184</title>
      <link>https://snipplr.com/view/41958/delete-nonempty-directory-and-files-with-one-function</link>
      <description>&lt;p&gt;This function can delete both non-empty directories and files.&lt;/p&gt;</description>
      <pubDate>Sat, 09 Oct 2010 21:47:02 UTC</pubDate>
      <guid>https://snipplr.com/view/41958/delete-nonempty-directory-and-files-with-one-function</guid>
    </item>
    <item>
      <title>(PHP) Check for duplicate element in array - stz184</title>
      <link>https://snipplr.com/view/41957/check-for-duplicate-element-in-array</link>
      <description>&lt;p&gt;Parameters: $array - haystack, $find-value - needle to check for duplicates&lt;/p&gt;</description>
      <pubDate>Sat, 09 Oct 2010 21:35:17 UTC</pubDate>
      <guid>https://snipplr.com/view/41957/check-for-duplicate-element-in-array</guid>
    </item>
    <item>
      <title>(PHP) Image resizer (thumbnail generator) - stz184</title>
      <link>https://snipplr.com/view/41867/image-resizer-thumbnail-generator</link>
      <description>&lt;p&gt;If the optional parameter $crop is set to TRUE the image will be zoomed and cropped to specific size ($new_size). Else, the image will be resized to size, keeping aspect ratio and using $new_size as max size.&lt;/p&gt;</description>
      <pubDate>Fri, 08 Oct 2010 21:50:46 UTC</pubDate>
      <guid>https://snipplr.com/view/41867/image-resizer-thumbnail-generator</guid>
    </item>
    <item>
      <title>(PHP) Random password generator - stz184</title>
      <link>https://snipplr.com/view/41865/random-password-generator</link>
      <description>&lt;p&gt;This function can be used to generate random passwords with specified length. Also, can use specified list of characters ($index)  and generate passwords with only lower or only upper case characters.&lt;/p&gt;</description>
      <pubDate>Fri, 08 Oct 2010 21:04:50 UTC</pubDate>
      <guid>https://snipplr.com/view/41865/random-password-generator</guid>
    </item>
    <item>
      <title>(PHP) Send UTF-8 encoded mail with custom to and reply-to - stz184</title>
      <link>https://snipplr.com/view/41851/send-utf8-encoded-mail-with-custom-to-and-replyto</link>
      <description>&lt;p&gt;Parameters:\r\n- $to - email address to send the mail\r\n- $subject - subject\r\n- $message - message body (HTML allowed)\r\n- $from_name - sender\'s name\r\n- $from_email - sender\'s email\r\n- $reply_to_name = custom, different from $from_name name to be used for replying to this message\r\n- $reply_to_email = custom, different from $from_email email to be used for replying to this message&lt;/p&gt;</description>
      <pubDate>Fri, 08 Oct 2010 18:25:16 UTC</pubDate>
      <guid>https://snipplr.com/view/41851/send-utf8-encoded-mail-with-custom-to-and-replyto</guid>
    </item>
    <item>
      <title>(PHP) String to database (sanitize string for inserting in database) - stz184</title>
      <link>https://snipplr.com/view/41850/string-to-database-sanitize-string-for-inserting-in-database</link>
      <description>&lt;p&gt;This function can be used to sanitize single string variable or massive like POST, GET, COOKIE. It performs magic quotes gpc check, strip tags, trim and escape the dangerous signs with mysql_real_escape_string.&lt;/p&gt;</description>
      <pubDate>Fri, 08 Oct 2010 18:18:54 UTC</pubDate>
      <guid>https://snipplr.com/view/41850/string-to-database-sanitize-string-for-inserting-in-database</guid>
    </item>
    <item>
      <title>(PHP) Paginator (page navigation) - stz184</title>
      <link>https://snipplr.com/view/41849/paginator-page-navigation</link>
      <description>&lt;p&gt;This function build page navigation links.\r\nParameters legend:\r\n- $items = total number of rows to be paginated\r\n- $perpage = how many rows to be displayed on a page\r\n- $maxlinks - how much page links to be build and shown for navigation ( &lt; 1 2 3 4 5 &gt; )&lt;/p&gt;</description>
      <pubDate>Fri, 08 Oct 2010 18:15:25 UTC</pubDate>
      <guid>https://snipplr.com/view/41849/paginator-page-navigation</guid>
    </item>
  </channel>
</rss>
