<?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 11:28:51 +0000</lastBuildDate>
    <item>
      <title>(PHP) Remove Empty Spaces in Dreamweaver - chopbust</title>
      <link>https://snipplr.com/view/59417/remove-empty-spaces-in-dreamweaver</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 05 Oct 2011 02:01:51 UTC</pubDate>
      <guid>https://snipplr.com/view/59417/remove-empty-spaces-in-dreamweaver</guid>
    </item>
    <item>
      <title>(Apache) Basic .htaccess Username switch - chopbust</title>
      <link>https://snipplr.com/view/58142/basic-htaccess-username-switch</link>
      <description>&lt;p&gt;Rewrites "www.site.com/xyz" to "index.php?who=xyz"&lt;/p&gt;</description>
      <pubDate>Thu, 25 Aug 2011 00:04:44 UTC</pubDate>
      <guid>https://snipplr.com/view/58142/basic-htaccess-username-switch</guid>
    </item>
    <item>
      <title>(PHP) CPANEL Simple Cron Job - chopbust</title>
      <link>https://snipplr.com/view/56904/cpanel-simple-cron-job</link>
      <description>&lt;p&gt;Just a simple snippet on what to put inside the Command slot inside Cpanel's Cron Job textbox to help you get a file running.&lt;/p&gt;</description>
      <pubDate>Wed, 20 Jul 2011 18:48:33 UTC</pubDate>
      <guid>https://snipplr.com/view/56904/cpanel-simple-cron-job</guid>
    </item>
    <item>
      <title>(PHP) Extract Numbers from String - chopbust</title>
      <link>https://snipplr.com/view/56748/extract-numbers-from-string</link>
      <description>&lt;p&gt;Give a string, and it will only returns numbers.&lt;/p&gt;</description>
      <pubDate>Mon, 18 Jul 2011 13:33:04 UTC</pubDate>
      <guid>https://snipplr.com/view/56748/extract-numbers-from-string</guid>
    </item>
    <item>
      <title>(MySQL) Custom Sort for MySQL - chopbust</title>
      <link>https://snipplr.com/view/56636/custom-sort-for-mysql</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 15 Jul 2011 18:23:01 UTC</pubDate>
      <guid>https://snipplr.com/view/56636/custom-sort-for-mysql</guid>
    </item>
    <item>
      <title>(PHP) Temperature Color Array - chopbust</title>
      <link>https://snipplr.com/view/56512/temperature-color-array</link>
      <description>&lt;p&gt;Returns the color (red to green) when you give a percentage amount, or reversible.&lt;/p&gt;</description>
      <pubDate>Wed, 13 Jul 2011 15:59:55 UTC</pubDate>
      <guid>https://snipplr.com/view/56512/temperature-color-array</guid>
    </item>
    <item>
      <title>(PHP) Server Side Form Validation - chopbust</title>
      <link>https://snipplr.com/view/55309/server-side-form-validation</link>
      <description>&lt;p&gt;A generic loop-based form validation to check which _POST value is empty. &#13;
&#13;
Enter the form name in Line 3 and put the description in Line 4.&lt;/p&gt;</description>
      <pubDate>Thu, 16 Jun 2011 14:21:14 UTC</pubDate>
      <guid>https://snipplr.com/view/55309/server-side-form-validation</guid>
    </item>
    <item>
      <title>(PHP) Set a minimum value - chopbust</title>
      <link>https://snipplr.com/view/50225/set-a-minimum-value</link>
      <description>&lt;p&gt;Method takes the amount and compares with the lowest/highest value and assigns that variable with the lowest/highest value. Good for setting the bar for lowest/highest value found in a set of value.&lt;/p&gt;</description>
      <pubDate>Mon, 07 Mar 2011 21:44:48 UTC</pubDate>
      <guid>https://snipplr.com/view/50225/set-a-minimum-value</guid>
    </item>
    <item>
      <title>(JavaScript) Change Form Submit target destination - chopbust</title>
      <link>https://snipplr.com/view/49982/change-form-submit-target-destination</link>
      <description>&lt;p&gt;To change the action attribute of a form.&lt;/p&gt;</description>
      <pubDate>Thu, 03 Mar 2011 17:09:45 UTC</pubDate>
      <guid>https://snipplr.com/view/49982/change-form-submit-target-destination</guid>
    </item>
    <item>
      <title>(PHP) Compare 2 set of strings and get percentage of Match - chopbust</title>
      <link>https://snipplr.com/view/49980/compare-2-set-of-strings-and-get-percentage-of-match</link>
      <description>&lt;p&gt;Get percentage of how much 2 strings matches with each other. Good for comparing things that doesn't have to be an exact match to fit.&lt;/p&gt;</description>
      <pubDate>Thu, 03 Mar 2011 17:06:34 UTC</pubDate>
      <guid>https://snipplr.com/view/49980/compare-2-set-of-strings-and-get-percentage-of-match</guid>
    </item>
    <item>
      <title>(PHP) Get Next Auto-increment number in the table - chopbust</title>
      <link>https://snipplr.com/view/49921/get-next-autoincrement-number-in-the-table</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 02 Mar 2011 19:23:58 UTC</pubDate>
      <guid>https://snipplr.com/view/49921/get-next-autoincrement-number-in-the-table</guid>
    </item>
    <item>
      <title>(PHP) Redirect a page using Javascript through PHP - chopbust</title>
      <link>https://snipplr.com/view/49918/redirect-a-page-using-javascript-through-php</link>
      <description>&lt;p&gt;Redirect page using PHP function.&#13;
&#13;
I don't like using header() as I like to redirect page mid-page. This is implemented using Javascript written through PHP function. Has a die() function at the end for people who has disabled their Javascript in their browser.&lt;/p&gt;</description>
      <pubDate>Wed, 02 Mar 2011 18:19:06 UTC</pubDate>
      <guid>https://snipplr.com/view/49918/redirect-a-page-using-javascript-through-php</guid>
    </item>
    <item>
      <title>(PHP) Create a username using Full Name - chopbust</title>
      <link>https://snipplr.com/view/49916/create-a-username-using-full-name</link>
      <description>&lt;p&gt;Takes a full string of a username - "Jack Bourne" and returns "jackbourne"&#13;
&#13;
Parameters are $original (full name) and $passno (identification number etc)&lt;/p&gt;</description>
      <pubDate>Wed, 02 Mar 2011 18:14:08 UTC</pubDate>
      <guid>https://snipplr.com/view/49916/create-a-username-using-full-name</guid>
    </item>
    <item>
      <title>(PHP) Preserving Form Elements by creating hidden form elements on new page based on previous page's form submit - chopbust</title>
      <link>https://snipplr.com/view/49913/preserving-form-elements-by-creating-hidden-form-elements-on-new-page-based-on-previous-pages-form-submit</link>
      <description>&lt;p&gt;I made this function to render hidden form elements in a new page based on what was sent from the last form. This function can be used to preserve input from a long multiple-page form.&#13;
&#13;
What does it do:&#13;
&#13;
1. Go through all the submitted POST elements.&#13;
2. Draw a loop of those POST elements into this new form (in form of hidden elements).&#13;
3. When that form submits, previous page's input is included inside this new form's submit action.&#13;
&#13;
Note: Do not use the same form element name as it overwrites as it goes along.&lt;/p&gt;</description>
      <pubDate>Wed, 02 Mar 2011 18:00:38 UTC</pubDate>
      <guid>https://snipplr.com/view/49913/preserving-form-elements-by-creating-hidden-form-elements-on-new-page-based-on-previous-pages-form-submit</guid>
    </item>
    <item>
      <title>(JavaScript) Highlight Table Row by Clicking on the Row - chopbust</title>
      <link>https://snipplr.com/view/43485/highlight-table-row-by-clicking-on-the-row</link>
      <description>&lt;p&gt;This is a snippet to highlight the clicked row. The code is in Prototype library format. I am yet to port this into JQuery, but please do email me if you already did.&lt;/p&gt;</description>
      <pubDate>Wed, 03 Nov 2010 18:53:14 UTC</pubDate>
      <guid>https://snipplr.com/view/43485/highlight-table-row-by-clicking-on-the-row</guid>
    </item>
    <item>
      <title>(JavaScript) Confirm an action using Javascript - chopbust</title>
      <link>https://snipplr.com/view/43128/confirm-an-action-using-javascript</link>
      <description>&lt;p&gt;When a link is clicked, call up this function. &#13;
&#13;
Parameter&#13;
message = message you want to display after click&#13;
url = page you want to forward to if the user clicks OK&lt;/p&gt;</description>
      <pubDate>Thu, 28 Oct 2010 21:12:00 UTC</pubDate>
      <guid>https://snipplr.com/view/43128/confirm-an-action-using-javascript</guid>
    </item>
    <item>
      <title>(PHP) PHP Function to call up Javascript Alert - chopbust</title>
      <link>https://snipplr.com/view/43127/php-function-to-call-up-javascript-alert</link>
      <description>&lt;p&gt;This is to call up Javascript alert through PHP. I hate switching between echoing Javascript while writing PHP so I wrote one in PHP.&lt;/p&gt;</description>
      <pubDate>Thu, 28 Oct 2010 21:07:54 UTC</pubDate>
      <guid>https://snipplr.com/view/43127/php-function-to-call-up-javascript-alert</guid>
    </item>
  </channel>
</rss>
