<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/php</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 19 May 2013 11:17:48 GMT</pubDate>
<item>
<title>(PHP) Copy Image From Remote Server To Local - nshakin</title>
<link>http://snipplr.com/view/71229/copy-image-from-remote-server-to-local/</link>
<description><![CDATA[ <p>PHP function to save an image from a remote source then download it to the local server that the script is on.</p> ]]></description>
<pubDate>Sat, 18 May 2013 10:49:57 GMT</pubDate>
<guid>http://snipplr.com/view/71229/copy-image-from-remote-server-to-local/</guid>
</item>
<item>
<title>(PHP) Wordpress Remove Admin Menu Items - oneupdzn</title>
<link>http://snipplr.com/view/71073/wordpress-remove-admin-menu-items/</link>
<description><![CDATA[ <p>Remove top level menus and sub menus from the admin menu.</p> ]]></description>
<pubDate>Tue, 07 May 2013 11:17:44 GMT</pubDate>
<guid>http://snipplr.com/view/71073/wordpress-remove-admin-menu-items/</guid>
</item>
<item>
<title>(PHP) GM Project 2012 (validate users) - cameronjrc</title>
<link>http://snipplr.com/view/71035/gm-project-2012-validate-users/</link>
<description><![CDATA[ <p>A fast description of an sql cell with comparison and response.</p> ]]></description>
<pubDate>Sat, 04 May 2013 01:31:23 GMT</pubDate>
<guid>http://snipplr.com/view/71035/gm-project-2012-validate-users/</guid>
</item>
<item>
<title>(PHP) GM Project 2012 (mod users) - cameronjrc</title>
<link>http://snipplr.com/view/71034/gm-project-2012-mod-users/</link>
<description><![CDATA[ <p>user modding for a forum based gaming website (file used in password protected directory)</p> ]]></description>
<pubDate>Sat, 04 May 2013 01:24:01 GMT</pubDate>
<guid>http://snipplr.com/view/71034/gm-project-2012-mod-users/</guid>
</item>
<item>
<title>(PHP) Function to detect if the visitor is on an android device - stianlagstad</title>
<link>http://snipplr.com/view/70985/function-to-detect-if-the-visitor-is-on-an-android-device/</link>
<description><![CDATA[ <p>This simple functions scans the user agent for the word "android" and returns true if found. Useful if there's something you only want android visitors to see (or not see).</p> ]]></description>
<pubDate>Tue, 30 Apr 2013 20:33:05 GMT</pubDate>
<guid>http://snipplr.com/view/70985/function-to-detect-if-the-visitor-is-on-an-android-device/</guid>
</item>
<item>
<title>(PHP) Credit card validation in php - satinfo30</title>
<link>http://snipplr.com/view/70984/credit-card-validation-in-php/</link>
<description><![CDATA[ <p>Validate the credit card number is valid or not</p> ]]></description>
<pubDate>Tue, 30 Apr 2013 20:10:28 GMT</pubDate>
<guid>http://snipplr.com/view/70984/credit-card-validation-in-php/</guid>
</item>
<item>
<title>(PHP) Debug Function - tucq88</title>
<link>http://snipplr.com/view/70789/debug-function/</link>
<description><![CDATA[ <p>Use for debug variables in clear way</p> ]]></description>
<pubDate>Mon, 15 Apr 2013 15:07:05 GMT</pubDate>
<guid>http://snipplr.com/view/70789/debug-function/</guid>
</item>
<item>
<title>(PHP) Fast Triangular Numbers - Omnikron13</title>
<link>http://snipplr.com/view/70705/fast-triangular-numbers/</link>
<description><![CDATA[ <p>Explanation of the method used here in the URL.</p> ]]></description>
<pubDate>Mon, 08 Apr 2013 15:50:09 GMT</pubDate>
<guid>http://snipplr.com/view/70705/fast-triangular-numbers/</guid>
</item>
<item>
<title>(PHP) Photoshop overlay blending with opacity in PHP - laurikar</title>
<link>http://snipplr.com/view/70657/photoshop-overlay-blending-with-opacity-in-php/</link>
<description><![CDATA[ <p>This function mimics Photoshop overlay blending by accepting two RGB arrays, one which will be overlayed and one which will overlay. Opacity is optional.</p> ]]></description>
<pubDate>Thu, 04 Apr 2013 21:48:50 GMT</pubDate>
<guid>http://snipplr.com/view/70657/photoshop-overlay-blending-with-opacity-in-php/</guid>
</item>
<item>
<title>(PHP) Enviar notificación SDK facebook php por parte de la aplicacion - serialk89</title>
<link>http://snipplr.com/view/70636/enviar-notificacin-sdk-facebook-php-por-parte-de-la-aplicacion/</link>
<description><![CDATA[ <p>La función del SDKphp de facebook 'notifications' envia una notificación por parte de la aplicación al usuario que quieras (que haya aceptado tu aplicación).</p> ]]></description>
<pubDate>Wed, 03 Apr 2013 03:20:16 GMT</pubDate>
<guid>http://snipplr.com/view/70636/enviar-notificacin-sdk-facebook-php-por-parte-de-la-aplicacion/</guid>
</item>
<item>
<title>(PHP) php timestamp - mortu</title>
<link>http://snipplr.com/view/70499/php-timestamp/</link>
<description><![CDATA[ <p>Timestamp used for files</p> ]]></description>
<pubDate>Fri, 22 Mar 2013 01:01:24 GMT</pubDate>
<guid>http://snipplr.com/view/70499/php-timestamp/</guid>
</item>
<item>
<title>(PHP) Find All Links on a Page - haydin</title>
<link>http://snipplr.com/view/70489/find-all-links-on-a-page/</link>
<description><![CDATA[ <p>Here's the basic principal behind spiders. (ex: Giochi Flash $html = file_get_contents('http://www.example.com');</p> ]]></description>
<pubDate>Wed, 20 Mar 2013 20:33:41 GMT</pubDate>
<guid>http://snipplr.com/view/70489/find-all-links-on-a-page/</guid>
</item>
<item>
<title>(JavaScript) iframe dynamic resize - leodruker</title>
<link>http://snipplr.com/view/70462/iframe-dynamic-resize/</link>
<description><![CDATA[ <p>JavaScript code to facilitate dynamic re-sizing of an iframe at the same time as the browser window is re-sized, as well as making sure that the frame scales proportionally to its width and height.</p> ]]></description>
<pubDate>Tue, 19 Mar 2013 04:38:38 GMT</pubDate>
<guid>http://snipplr.com/view/70462/iframe-dynamic-resize/</guid>
</item>
<item>
<title>(PHP) first letter of lastname php - dego89</title>
<link>http://snipplr.com/view/70416/first-letter-of-lastname-php/</link>
<description><![CDATA[ <p>Get the first char of a lastname in php</p> ]]></description>
<pubDate>Thu, 14 Mar 2013 04:48:00 GMT</pubDate>
<guid>http://snipplr.com/view/70416/first-letter-of-lastname-php/</guid>
</item>
<item>
<title>(PHP) PHP Email Validator – Email MX DNS Record Check - mafhh14</title>
<link>http://snipplr.com/view/70403/php-email-validator--email-mx-dns-record-check/</link>
<description><![CDATA[ <p>Validating an email address is one of the hardest feats on the web. A valid email can be marketing
gold, but an invalid email address is dead weight. Not only does it require a CPU-taxing PHP regular
expression ("/^[A-z0-9\._-]+"."@" . "[A-z0-9][A-z0-9-]*". "(\.[A-z0-9_-]+)*"."\.([A-z]{2,6})$/"),
the regular expression can be useless even after it's validated for format if the domain doesn't
exist. 

A regular expression simply wont do -- we need to think more low-level. What does email at any
domain require? A DNS MX record. Well, PHP provides a great solution to validate that there's a MX
record for the provided email address' domain.</p> ]]></description>
<pubDate>Wed, 13 Mar 2013 19:07:33 GMT</pubDate>
<guid>http://snipplr.com/view/70403/php-email-validator--email-mx-dns-record-check/</guid>
</item>
<item>
<title>(PHP) Lambda function to create XML from Array - abrahamsustaita</title>
<link>http://snipplr.com/view/70278/lambda-function-to-create-xml-from-array/</link>
<description><![CDATA[ <p>This snippet is a lambda function (anonymous function) to create an xml from an array. It uses recursiveness.</p> ]]></description>
<pubDate>Wed, 06 Mar 2013 07:03:26 GMT</pubDate>
<guid>http://snipplr.com/view/70278/lambda-function-to-create-xml-from-array/</guid>
</item>
<item>
<title>(PHP) Doing POST Request by Socket Connection - apphp-snippets</title>
<link>http://snipplr.com/view/70119/doing-post-request-by-socket-connection/</link>
<description><![CDATA[ <p>This example of code shows how to do a simple POST request in PHP to another web server by using a socket connection.</p> ]]></description>
<pubDate>Wed, 27 Feb 2013 20:51:52 GMT</pubDate>
<guid>http://snipplr.com/view/70119/doing-post-request-by-socket-connection/</guid>
</item>
<item>
<title>(PHP) Extbase: Make a (deep) copy of the model - FazzyX</title>
<link>http://snipplr.com/view/70118/extbase-make-a-deep-copy-of-the-model/</link>
<description><![CDATA[ <p>You need a copy of your model and relations (ObjectStorage properties).
In this example there is a model Product with property ProductAddition (1:n relation).</p> ]]></description>
<pubDate>Wed, 27 Feb 2013 20:51:43 GMT</pubDate>
<guid>http://snipplr.com/view/70118/extbase-make-a-deep-copy-of-the-model/</guid>
</item>
<item>
<title>(PHP) Using Gravatars In Your Script - apphp-snippets</title>
<link>http://snipplr.com/view/70105/using-gravatars-in-your-script/</link>
<description><![CDATA[ <p>With increasing of popularity of WordPress script, Gravatars have become a really quite popular. Now you may easy integrate them into your own script as they provide a very easy to use API.</p> ]]></description>
<pubDate>Tue, 26 Feb 2013 20:56:51 GMT</pubDate>
<guid>http://snipplr.com/view/70105/using-gravatars-in-your-script/</guid>
</item>
<item>
<title>(PHP) Compress multiple CSS files - apphp-snippets</title>
<link>http://snipplr.com/view/70086/compress-multiple-css-files/</link>
<description><![CDATA[ <p>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.</p> ]]></description>
<pubDate>Mon, 25 Feb 2013 18:46:49 GMT</pubDate>
<guid>http://snipplr.com/view/70086/compress-multiple-css-files/</guid>
</item>
</channel>
</rss>