<?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 22:12:35 +0000</lastBuildDate>
    <item>
      <title>(Bash) Prevent Access to a Specific File/s in .htaccess - apphp-snippets</title>
      <link>https://snipplr.com/view/326975/prevent-access-to-a-specific-files-in-htaccess</link>
      <description>&lt;p&gt;This example shows you how to restrict to a specific file or multiple files. Add the following code block and edit the file name/s according to yuor needs.&lt;/p&gt;</description>
      <pubDate>Tue, 03 Oct 2017 05:56:00 UTC</pubDate>
      <guid>https://snipplr.com/view/326975/prevent-access-to-a-specific-files-in-htaccess</guid>
    </item>
    <item>
      <title>(Bash) Force www./no-www. in .htaccess - apphp-snippets</title>
      <link>https://snipplr.com/view/326974/force-wwwnowww-in-htaccess</link>
      <description>&lt;p&gt;This example shows you how to force www. or no-www. using .htaccess file.&lt;/p&gt;</description>
      <pubDate>Tue, 03 Oct 2017 05:55:00 UTC</pubDate>
      <guid>https://snipplr.com/view/326974/force-wwwnowww-in-htaccess</guid>
    </item>
    <item>
      <title>(MySQL) Get Random Record Based on Weight - apphp-snippets</title>
      <link>https://snipplr.com/view/325123/get-random-record-based-on-weight</link>
      <description>&lt;p&gt;This snippet allows you to get random record from given table by weight. To run it, it must have a field named "weight". The more "weight" is assigned, the more often the record is selected. The value of "weight" should be an integer between 1 and 10 (or anything else).&lt;/p&gt;</description>
      <pubDate>Wed, 14 Jun 2017 06:22:21 UTC</pubDate>
      <guid>https://snipplr.com/view/325123/get-random-record-based-on-weight</guid>
    </item>
    <item>
      <title>(SQL) Insert or Update Record if Unique Key Already Exists - apphp-snippets</title>
      <link>https://snipplr.com/view/325122/insert-or-update-record-if-unique-key-already-exists</link>
      <description>&lt;p&gt;This snippet allows you to insert new record into table. In case a unique key already exists - it updates appropriate fields only, leaving other fields untouched.&lt;/p&gt;</description>
      <pubDate>Wed, 14 Jun 2017 06:21:25 UTC</pubDate>
      <guid>https://snipplr.com/view/325122/insert-or-update-record-if-unique-key-already-exists</guid>
    </item>
    <item>
      <title>(HTML) HTML5 Article Structure with News - apphp-snippets</title>
      <link>https://snipplr.com/view/324924/html5-article-structure-with-news</link>
      <description>&lt;p&gt;This example is a full HTML5 article structure. Just copy/paste it into your page to check.&lt;/p&gt;</description>
      <pubDate>Mon, 05 Jun 2017 05:06:57 UTC</pubDate>
      <guid>https://snipplr.com/view/324924/html5-article-structure-with-news</guid>
    </item>
    <item>
      <title>(HTML) Post Data to iFrame with HTML Only - apphp-snippets</title>
      <link>https://snipplr.com/view/324923/post-data-to-iframe-with-html-only</link>
      <description>&lt;p&gt;To send data into iFrame you don't need JavaScript or anything. You just have the form's target attribute match the iframe's name attribute. The outer page doesn't even reload. Copy this code and test it.&lt;/p&gt;</description>
      <pubDate>Mon, 05 Jun 2017 05:05:58 UTC</pubDate>
      <guid>https://snipplr.com/view/324923/post-data-to-iframe-with-html-only</guid>
    </item>
    <item>
      <title>(CSS) Non-Transparent Inside Transparent Elements - apphp-snippets</title>
      <link>https://snipplr.com/view/324808/nontransparent-inside-transparent-elements</link>
      <description>&lt;p&gt;If using transparency on a block element it makes the text inside transparent as well. Is there a way you can prevent that from happening? Yes, you may do it by putting the text in another div and setting the opacity to 100%, but that didn't do the job. Although, logically, it would!&lt;/p&gt;</description>
      <pubDate>Tue, 30 May 2017 18:11:29 UTC</pubDate>
      <guid>https://snipplr.com/view/324808/nontransparent-inside-transparent-elements</guid>
    </item>
    <item>
      <title>(CSS) Align Backgroud Image with Offset in CSS - apphp-snippets</title>
      <link>https://snipplr.com/view/324807/align-backgroud-image-with-offset-in-css</link>
      <description>&lt;p&gt;You may align background image not only to left or top corner, but also use an offset for alignment.&lt;/p&gt;</description>
      <pubDate>Tue, 30 May 2017 18:10:22 UTC</pubDate>
      <guid>https://snipplr.com/view/324807/align-backgroud-image-with-offset-in-css</guid>
    </item>
    <item>
      <title>(JavaScript) Display Random Quotes with JavaScript - apphp-snippets</title>
      <link>https://snipplr.com/view/324741/display-random-quotes-with-javascript</link>
      <description>&lt;p&gt;This snippet code allows you to prevent the viewer from being able to right-click on your page. This can discourage the average user from borrow images or code from your site.&lt;/p&gt;</description>
      <pubDate>Fri, 26 May 2017 04:42:11 UTC</pubDate>
      <guid>https://snipplr.com/view/324741/display-random-quotes-with-javascript</guid>
    </item>
    <item>
      <title>(JavaScript) Blocking Right-Click in Browser with JavaScript - apphp-snippets</title>
      <link>https://snipplr.com/view/324740/blocking-rightclick-in-browser-with-javascript</link>
      <description>&lt;p&gt;This snippet code allows you to prevent the viewer from being able to right-click on your page. This can discourage the average user from borrow images or code from your site.&lt;/p&gt;</description>
      <pubDate>Fri, 26 May 2017 04:40:53 UTC</pubDate>
      <guid>https://snipplr.com/view/324740/blocking-rightclick-in-browser-with-javascript</guid>
    </item>
    <item>
      <title>(PHP) Calculate Full Size of Directory in PHP - apphp-snippets</title>
      <link>https://snipplr.com/view/324671/calculate-full-size-of-directory-in-php</link>
      <description>&lt;p&gt;This code allows to calculate the full size of a directory using PHP.&lt;/p&gt;</description>
      <pubDate>Mon, 22 May 2017 18:17:25 UTC</pubDate>
      <guid>https://snipplr.com/view/324671/calculate-full-size-of-directory-in-php</guid>
    </item>
    <item>
      <title>(PHP) WhoIs Query in PHP - apphp-snippets</title>
      <link>https://snipplr.com/view/324670/whois-query-in-php</link>
      <description>&lt;p&gt;This code allows to perform a query to WhoIs service in PHP.&lt;/p&gt;</description>
      <pubDate>Mon, 22 May 2017 18:15:03 UTC</pubDate>
      <guid>https://snipplr.com/view/324670/whois-query-in-php</guid>
    </item>
    <item>
      <title>(PHP) Redirect to Another Directory in .htaccess - apphp-snippets</title>
      <link>https://snipplr.com/view/146229/redirect-to-another-directory-in-htaccess</link>
      <description>&lt;p&gt;This example shows you how to create redirection o another directory. It may be useful, for example, when you have a project, placed in sub-directory.&lt;/p&gt;</description>
      <pubDate>Fri, 26 Feb 2016 06:32:39 UTC</pubDate>
      <guid>https://snipplr.com/view/146229/redirect-to-another-directory-in-htaccess</guid>
    </item>
    <item>
      <title>(HTML) Turn Off Autocomplete for Input in HTML - apphp-snippets</title>
      <link>https://snipplr.com/view/145816/turn-off-autocomplete-for-input-in-html</link>
      <description>&lt;p&gt;This would be useful when a text input is one-off or unique. Like a username or email input, one-time use codes, or for when you have built your own auto-suggest/auto-complete feature and need to turn off the browser default.&lt;/p&gt;</description>
      <pubDate>Tue, 19 Jan 2016 07:10:11 UTC</pubDate>
      <guid>https://snipplr.com/view/145816/turn-off-autocomplete-for-input-in-html</guid>
    </item>
    <item>
      <title>(CSS) Cross-Browser Gradient in CSS3 - apphp-snippets</title>
      <link>https://snipplr.com/view/145467/crossbrowser-gradient-in-css3</link>
      <description>&lt;p&gt;The following code will display a cross-browser CSS-gradients. Th add the right selector you can use rgba() for transparency.&lt;/p&gt;</description>
      <pubDate>Tue, 22 Dec 2015 07:03:12 UTC</pubDate>
      <guid>https://snipplr.com/view/145467/crossbrowser-gradient-in-css3</guid>
    </item>
    <item>
      <title>(CSS) My own font-face in CSS - apphp-snippets</title>
      <link>https://snipplr.com/view/145466/my-own-fontface-in-css</link>
      <description>&lt;p&gt;It allows you to add your own fonts on the page. To convert to different formats use this service Font2Web.&lt;/p&gt;</description>
      <pubDate>Tue, 22 Dec 2015 07:02:08 UTC</pubDate>
      <guid>https://snipplr.com/view/145466/my-own-fontface-in-css</guid>
    </item>
    <item>
      <title>(CSS) My own @font-face in CSS - apphp-snippets</title>
      <link>https://snipplr.com/view/145465/my-own-fontface-in-css</link>
      <description>&lt;p&gt;It allows you to add your own fonts on the page. To convert to different formats use this service Font2Web.&lt;/p&gt;</description>
      <pubDate>Tue, 22 Dec 2015 06:31:57 UTC</pubDate>
      <guid>https://snipplr.com/view/145465/my-own-fontface-in-css</guid>
    </item>
    <item>
      <title>(JavaScript) Anti iFrame Buster in JavaScript - apphp-snippets</title>
      <link>https://snipplr.com/view/144789/anti-iframe-buster-in-javascript</link>
      <description>&lt;p&gt;You know that iFrames are a necessary evil for many of us. When yuo put a third party site in an iframe is always a risk because they can break out of that iframe and redirect the visitor to another location. This code acts as a defense for such cases and prevents them from being able to bust out of the iframe.&lt;/p&gt;</description>
      <pubDate>Wed, 04 Nov 2015 19:10:13 UTC</pubDate>
      <guid>https://snipplr.com/view/144789/anti-iframe-buster-in-javascript</guid>
    </item>
    <item>
      <title>(JavaScript) Getting IP Address - apphp-snippets</title>
      <link>https://snipplr.com/view/144788/getting-ip-address</link>
      <description>&lt;p&gt;Sometimes you may want to show the visitor that you are aware of their IP address. You can do so by using few lines of code as shown here. Place the code in any place of your page, where you want the IP address to appear:&lt;/p&gt;</description>
      <pubDate>Wed, 04 Nov 2015 19:08:37 UTC</pubDate>
      <guid>https://snipplr.com/view/144788/getting-ip-address</guid>
    </item>
    <item>
      <title>(PHP) Calculate Age Using a Birth Date - apphp-snippets</title>
      <link>https://snipplr.com/view/112041/calculate-age-using-a-birth-date</link>
      <description>&lt;p&gt;This function gets birth date as an argument and it returns the age of the person; it's very useful when building communities or social media sites.&lt;/p&gt;</description>
      <pubDate>Tue, 13 Oct 2015 05:26:58 UTC</pubDate>
      <guid>https://snipplr.com/view/112041/calculate-age-using-a-birth-date</guid>
    </item>
    <item>
      <title>(PHP) Compress Mltiple CSS Files - apphp-snippets</title>
      <link>https://snipplr.com/view/112040/compress-mltiple-css-files</link>
      <description>&lt;p&gt;Usually when you're using different CSS files on your site, they might take a quite long to be loaded. Using this PHP code, you can compress them into a single file with no unnecessary white spaces or comments. Why we need to compress multiple CSS files? The answer is: the compressing procedure may take a less time than a total time of loading each file separately.&lt;/p&gt;</description>
      <pubDate>Tue, 13 Oct 2015 05:24:52 UTC</pubDate>
      <guid>https://snipplr.com/view/112040/compress-mltiple-css-files</guid>
    </item>
    <item>
      <title>(Bash) Error Logging in .htaccess - apphp-snippets</title>
      <link>https://snipplr.com/view/75588/error-logging-in-htaccess</link>
      <description>&lt;p&gt;This example shows you how to log errors to a file, and prevent showing them to the user. Make sure that the file exists and you're able to write to it.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jul 2014 18:07:31 UTC</pubDate>
      <guid>https://snipplr.com/view/75588/error-logging-in-htaccess</guid>
    </item>
    <item>
      <title>(SQL) Calculate Relative Time Ago - apphp-snippets</title>
      <link>https://snipplr.com/view/75587/calculate-relative-time-ago</link>
      <description>&lt;p&gt;Here you may find some useful snippets for calculating relative time for different purposes: to get info from a column within certain date, like the latest 7 days, to get time interval etc.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jul 2014 18:06:29 UTC</pubDate>
      <guid>https://snipplr.com/view/75587/calculate-relative-time-ago</guid>
    </item>
    <item>
      <title>(HTML) Favicon and Apple Icons in HTML - apphp-snippets</title>
      <link>https://snipplr.com/view/75221/favicon-and-apple-icons-in-html</link>
      <description>&lt;p&gt;The favicon is much normality in our days. Here the "apple-touch-icon" definition which is used when you save a bookmark to your home screen on an apple touch devices such as an iPad or iPhone. The interesting thing is that Android also supports its usage. The standard size for "apple-touch-icon" size is 60px by 60px.&lt;/p&gt;</description>
      <pubDate>Wed, 16 Jul 2014 17:06:16 UTC</pubDate>
      <guid>https://snipplr.com/view/75221/favicon-and-apple-icons-in-html</guid>
    </item>
    <item>
      <title>(CSS) Targeting Chrome With CSS - apphp-snippets</title>
      <link>https://snipplr.com/view/75067/targeting-chrome-with-css</link>
      <description>&lt;p&gt;This solution is based on Chrome specific CSS extension. Other browsers will ignore this rule.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Jul 2014 17:56:26 UTC</pubDate>
      <guid>https://snipplr.com/view/75067/targeting-chrome-with-css</guid>
    </item>
    <item>
      <title>(JavaScript) Create new Object From Variable in JavaScript - apphp-snippets</title>
      <link>https://snipplr.com/view/75020/create-new-object-from-variable-in-javascript</link>
      <description>&lt;p&gt;This example of code allows you to create a new object in javascript (using simple inheritance) such that the class of the object is defined from a variable. After creating the object you may use it for your purposes.&lt;/p&gt;</description>
      <pubDate>Wed, 02 Jul 2014 18:06:43 UTC</pubDate>
      <guid>https://snipplr.com/view/75020/create-new-object-from-variable-in-javascript</guid>
    </item>
    <item>
      <title>(PHP) Change Image Properties 'On-The-Fly' - apphp-snippets</title>
      <link>https://snipplr.com/view/74931/change-image-properties-onthefly</link>
      <description>&lt;p&gt;Sometimes you may need to change image properties 'on-the-fly'. The best example is when you want to display blog post short description, retrieve the first image and try to turn it into the thumbnail: change some properties and add a special class name.&lt;/p&gt;</description>
      <pubDate>Mon, 23 Jun 2014 17:38:32 UTC</pubDate>
      <guid>https://snipplr.com/view/74931/change-image-properties-onthefly</guid>
    </item>
    <item>
      <title>(PHP) Change Language Automatically According to the Visitor Country - apphp-snippets</title>
      <link>https://snipplr.com/view/74930/change-language-automatically-according-to-the-visitor-country</link>
      <description>&lt;p&gt;This simple code demonstrates how to change automatically site language, according to the visitor's country. If you implement this script in your site it will open the page in the language of your visitor.&lt;/p&gt;</description>
      <pubDate>Mon, 23 Jun 2014 17:37:02 UTC</pubDate>
      <guid>https://snipplr.com/view/74930/change-language-automatically-according-to-the-visitor-country</guid>
    </item>
    <item>
      <title>(PHP) Remove File Extention from URLs in .htaccess - apphp-snippets</title>
      <link>https://snipplr.com/view/73576/remove-file-extention-from-urls-in-htaccess</link>
      <description>&lt;p&gt;This example shows you how to remove file extension from URLs using .htaccess file directives. Remember, that "mod_rewrite" works only on Apache server. Before trying please be sure that you are working on Apache server and the "mod_rewrite" module/extension is enabled.&lt;/p&gt;</description>
      <pubDate>Wed, 05 Feb 2014 20:05:42 UTC</pubDate>
      <guid>https://snipplr.com/view/73576/remove-file-extention-from-urls-in-htaccess</guid>
    </item>
    <item>
      <title>(PHP) Different Directory Index Page in .htaccess - apphp-snippets</title>
      <link>https://snipplr.com/view/73575/different-directory-index-page-in-htaccess</link>
      <description>&lt;p&gt;We know that normally index.html or index.php is the default page for many servers, when visitor types a directory without specifying a file name. You can change this rule with .htaccess:&lt;/p&gt;</description>
      <pubDate>Wed, 05 Feb 2014 20:04:37 UTC</pubDate>
      <guid>https://snipplr.com/view/73575/different-directory-index-page-in-htaccess</guid>
    </item>
    <item>
      <title>(MySQL) Find and Replace with MySQL - apphp-snippets</title>
      <link>https://snipplr.com/view/73561/find-and-replace-with-mysql</link>
      <description>&lt;p&gt;MySQL has a handy and simple string function REPLACE() that allows table data with the matching string to be replaced by new string. This is useful if there is need to search and replace a text string which affects many records or rows, such as change of address, company name, URL or spelling mistake.&lt;/p&gt;</description>
      <pubDate>Tue, 04 Feb 2014 21:22:39 UTC</pubDate>
      <guid>https://snipplr.com/view/73561/find-and-replace-with-mysql</guid>
    </item>
    <item>
      <title>(MySQL) Create a Database and Assign a User - apphp-snippets</title>
      <link>https://snipplr.com/view/73560/create-a-database-and-assign-a-user</link>
      <description>&lt;p&gt;This is a very simple snippet about how to create a database 1st, a user and then assign some privileges to the user to allow him/her to perform some specific actions like insert, create, update, select etc.&lt;/p&gt;</description>
      <pubDate>Tue, 04 Feb 2014 21:21:36 UTC</pubDate>
      <guid>https://snipplr.com/view/73560/create-a-database-and-assign-a-user</guid>
    </item>
    <item>
      <title>(HTML) Button With Line Breaks in HTML - apphp-snippets</title>
      <link>https://snipplr.com/view/73551/button-with-line-breaks-in-html</link>
      <description>&lt;p&gt;To get button with line breaks you can use carriage return characters to break the line: &amp;#x00A; or just &lt;br&gt; with a &lt;button&gt; tag:&lt;/p&gt;</description>
      <pubDate>Mon, 03 Feb 2014 20:41:01 UTC</pubDate>
      <guid>https://snipplr.com/view/73551/button-with-line-breaks-in-html</guid>
    </item>
    <item>
      <title>(HTML) Comments in HTML - apphp-snippets</title>
      <link>https://snipplr.com/view/73550/comments-in-html</link>
      <description>&lt;p&gt;The &lt;!--&gt; syntax is the HTML comment. This is the way to add your own notes into the code which will not display when the HTML is rendered by the browser. It is also a good practice for web-developers to use the comment tags to "hide" scripts from browsers without support for it (so they don't show them as a plain text).&lt;/p&gt;</description>
      <pubDate>Mon, 03 Feb 2014 20:40:07 UTC</pubDate>
      <guid>https://snipplr.com/view/73550/comments-in-html</guid>
    </item>
    <item>
      <title>(CSS) Animated Tooltip with CSS - apphp-snippets</title>
      <link>https://snipplr.com/view/73546/animated-tooltip-with-css</link>
      <description>&lt;p&gt;This example shows you how to create custom tooltips, using just a pure CSS. In this examples we use "transform" feature of the CSS3 and some other tricks. Also you may find additional tooltip class provided, to show you the way you may customize this code.&lt;/p&gt;</description>
      <pubDate>Sun, 02 Feb 2014 20:42:41 UTC</pubDate>
      <guid>https://snipplr.com/view/73546/animated-tooltip-with-css</guid>
    </item>
    <item>
      <title>(CSS) Prevent Long URL's From Breaking Out with CSS - apphp-snippets</title>
      <link>https://snipplr.com/view/73545/prevent-long-urls-from-breaking-out-with-css</link>
      <description>&lt;p&gt;This solution will help you to prevent many issues with your site, when you need to prevent long URL's from breaking out of container.&lt;/p&gt;</description>
      <pubDate>Sun, 02 Feb 2014 20:38:40 UTC</pubDate>
      <guid>https://snipplr.com/view/73545/prevent-long-urls-from-breaking-out-with-css</guid>
    </item>
    <item>
      <title>(JavaScript) Converting a text input to a select with JavaScript - apphp-snippets</title>
      <link>https://snipplr.com/view/73527/converting-a-text-input-to-a-select-with-javascript</link>
      <description>&lt;p&gt;Sometimes you need the page dynamically changes a texbox with a dropdown box. On the example below we show you how to perform this work. The first way demonstrates how to do this with remove() and append() jQuery methods and the second shows how to perform the same work with replaceWith() method.&lt;/p&gt;</description>
      <pubDate>Wed, 29 Jan 2014 21:22:50 UTC</pubDate>
      <guid>https://snipplr.com/view/73527/converting-a-text-input-to-a-select-with-javascript</guid>
    </item>
    <item>
      <title>(JavaScript) How To Define Class Private Members in JavaScript - apphp-snippets</title>
      <link>https://snipplr.com/view/73526/how-to-define-class-private-members-in-javascript</link>
      <description>&lt;p&gt;Class member encapsulation in JavaScript is very important thing and may be implemented with easy. To define private property or method just use var before the definition or this., if you need to give a public access to property or method.&lt;/p&gt;</description>
      <pubDate>Wed, 29 Jan 2014 21:20:39 UTC</pubDate>
      <guid>https://snipplr.com/view/73526/how-to-define-class-private-members-in-javascript</guid>
    </item>
    <item>
      <title>(PHP) Validate IP Address in PHP - apphp-snippets</title>
      <link>https://snipplr.com/view/73519/validate-ip-address-in-php</link>
      <description>&lt;p&gt;This code demonstrates a simple way to validate IP address using preg_match() PHP function. This is a very simple code, that allows you to perform this task quickly with a minimum lines of code.&lt;/p&gt;</description>
      <pubDate>Tue, 28 Jan 2014 22:49:45 UTC</pubDate>
      <guid>https://snipplr.com/view/73519/validate-ip-address-in-php</guid>
    </item>
    <item>
      <title>(PHP) Creating and Parsing JSON Data in PHP - apphp-snippets</title>
      <link>https://snipplr.com/view/73510/creating-and-parsing-json-data-in-php</link>
      <description>&lt;p&gt;This code demonstrates how to create and parse the JSON data format of using array of PHP. It's a very simple code, that allows you to perform this task.&lt;/p&gt;</description>
      <pubDate>Mon, 27 Jan 2014 21:04:35 UTC</pubDate>
      <guid>https://snipplr.com/view/73510/creating-and-parsing-json-data-in-php</guid>
    </item>
    <item>
      <title>(JavaScript) Focus OnLoad in JavaScript - apphp-snippets</title>
      <link>https://snipplr.com/view/72179/focus-onload-in-javascript</link>
      <description>&lt;p&gt;You can put the user's cursor inside a text box or put focus on select box as soon as your page is loaded. This helps ensure that visitors do not 'overlook' an important form item on your site and this snippet only uses one line of code!&lt;/p&gt;</description>
      <pubDate>Thu, 22 Aug 2013 18:30:09 UTC</pubDate>
      <guid>https://snipplr.com/view/72179/focus-onload-in-javascript</guid>
    </item>
    <item>
      <title>(PHP) Get Country By IP Address in PHP - apphp-snippets</title>
      <link>https://snipplr.com/view/72171/get-country-by-ip-address-in-php</link>
      <description>&lt;p&gt;This simple function allows you to getect a country code and city of your site visitors, using the www.geoplugin.net service. You may use this data to add default values in registration form or use it for any other purposes, like blocking access to your site from special regions.&lt;/p&gt;</description>
      <pubDate>Wed, 21 Aug 2013 18:51:57 UTC</pubDate>
      <guid>https://snipplr.com/view/72171/get-country-by-ip-address-in-php</guid>
    </item>
    <item>
      <title>(JavaScript) jQuery Loading Fallback - apphp-snippets</title>
      <link>https://snipplr.com/view/72161/jquery-loading-fallback</link>
      <description>&lt;p&gt;Nowadays majority of sites uses the jQuery JavaScript library. A lot of them also make use of Google's hosted version of the library from some reasons: faster loading, better cross site caching etc. However, what if there is ever a problem and jQuery is not loaded from Google? For example when you work on localhost and there is no Internet connection? This simple snippet will help you. It basically checks if jQuery is loaded from Google. If not, then it loads it locally from our own version of jQuery.&lt;/p&gt;</description>
      <pubDate>Tue, 20 Aug 2013 19:21:41 UTC</pubDate>
      <guid>https://snipplr.com/view/72161/jquery-loading-fallback</guid>
    </item>
    <item>
      <title>(CSS) Center Website Content with CSS - apphp-snippets</title>
      <link>https://snipplr.com/view/72146/center-website-content-with-css</link>
      <description>&lt;p&gt;Today in the days of high-resolution widescreen displays, it's annoying to visit websites that are formatted like it's 1990's. aligned all the way to the left. Make sure your website doesn't suffer the same fate by forcing it;s content to center horizontally and vertically.&lt;/p&gt;</description>
      <pubDate>Mon, 19 Aug 2013 18:52:35 UTC</pubDate>
      <guid>https://snipplr.com/view/72146/center-website-content-with-css</guid>
    </item>
    <item>
      <title>(PHP) Custom Error Pages in .htaccess - apphp-snippets</title>
      <link>https://snipplr.com/view/72143/custom-error-pages-in-htaccess</link>
      <description>&lt;p&gt;This example shows you how to define custom error pages in .htaccess file and also how to display the error page on your site.  You may create separate files for each error, described in Sample 1 or just create the one PHP file for Sample 2.    Here the PHP template for dealing with any sort of error, if you want to keep it simple:&lt;/p&gt;</description>
      <pubDate>Sun, 18 Aug 2013 19:32:17 UTC</pubDate>
      <guid>https://snipplr.com/view/72143/custom-error-pages-in-htaccess</guid>
    </item>
    <item>
      <title>(PL/SQL) Search in Tags Set in MySQL - apphp-snippets</title>
      <link>https://snipplr.com/view/72120/search-in-tags-set-in-mysql</link>
      <description>&lt;p&gt;Lets say you have a table with field called "tags" that consists from tags separated by commas and you want to check whether it includes a required tag. Here the simplest ways of doing that.&lt;/p&gt;</description>
      <pubDate>Wed, 14 Aug 2013 19:38:55 UTC</pubDate>
      <guid>https://snipplr.com/view/72120/search-in-tags-set-in-mysql</guid>
    </item>
    <item>
      <title>(PL/SQL) Selecting a Random Row from Table in MySQL - apphp-snippets</title>
      <link>https://snipplr.com/view/70369/selecting-a-random-row-from-table-in-mysql</link>
      <description>&lt;p&gt;Here the simplest way of selecting random rows from the MySQL database with using "ORDER BY RAND()" clause in the query.&lt;/p&gt;</description>
      <pubDate>Tue, 12 Mar 2013 22:09:43 UTC</pubDate>
      <guid>https://snipplr.com/view/70369/selecting-a-random-row-from-table-in-mysql</guid>
    </item>
    <item>
      <title>(HTML) Multiple File Input in HTML - apphp-snippets</title>
      <link>https://snipplr.com/view/70354/multiple-file-input-in-html</link>
      <description>&lt;p&gt;File inputs can have an attribute of "multiple" which then allows multiple files to be selected in the file section dialog box. Currently only Firefox 3.6+ and WebKit browsers are supporting it.&lt;/p&gt;</description>
      <pubDate>Mon, 11 Mar 2013 17:44:09 UTC</pubDate>
      <guid>https://snipplr.com/view/70354/multiple-file-input-in-html</guid>
    </item>
    <item>
      <title>(HTML) Media Code in HTML5 - apphp-snippets</title>
      <link>https://snipplr.com/view/70353/media-code-in-html5</link>
      <description>&lt;p&gt;This example is a basic design structure for loading multiple video and audio formats for universal work of media content on your page.&lt;/p&gt;</description>
      <pubDate>Mon, 11 Mar 2013 17:43:11 UTC</pubDate>
      <guid>https://snipplr.com/view/70353/media-code-in-html5</guid>
    </item>
    <item>
      <title>(Haskell) Page Structure in HTML5 - apphp-snippets</title>
      <link>https://snipplr.com/view/70352/page-structure-in-html5</link>
      <description>&lt;p&gt;This example is a basic HTML5 page structure that you can use for developing of your HTML5 website layout.&lt;/p&gt;</description>
      <pubDate>Mon, 11 Mar 2013 17:42:07 UTC</pubDate>
      <guid>https://snipplr.com/view/70352/page-structure-in-html5</guid>
    </item>
  </channel>
</rss>
