<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>CodeKeep PHP Feed</title>
    <description>The latest and greatest PHP code snippets publicly available</description>
    <link>http://www.codekeep.net/feeds.aspx</link>
    <lastBuildDate>Wed, 16 Jan 2013 04:35:34 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>RSS.NET: http://www.rssdotnet.com/</generator>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CodeKeepPHP" /><feedburner:info uri="codekeepphp" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
      <title>Create one JS file</title>
      <description>Description: I wanted a way to collect all my ExtJS controllers, models, stores and views and include them in one javascript file for deployment. This allowed me to set the Ext loader to false and just include my one JS file instead of all  my custom ExtJS components.&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/dbfdcf04-26fc-4ddf-b78f-c9ad02028058.aspx'&gt;http://www.codekeep.net/snippets/dbfdcf04-26fc-4ddf-b78f-c9ad02028058.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
//concatenates all files in a directory

//a function to recursively loop through folders hierarchy
//	$folder: the folder to start from initially
//	$location: the relative or absolute path to that folder (e.g. '../', 'C:\myFolder', '../../', '/', etc.)
function readAndRequireDirs($folder, $location){
	$string = &amp;quot;&amp;quot;;
	
	if(is_dir(&amp;quot;$location/$folder&amp;quot;)){
		$dirHandle = opendir(&amp;quot;$location/$folder&amp;quot;);
		while($file = readdir($dirHandle)){  	
			if(is_dir(&amp;quot;$location/$folder/$file&amp;quot;) &amp;amp;&amp;amp; $file != '.' &amp;amp;&amp;amp; $file != '..'){
				$string .= &amp;quot;\n\n&amp;quot;.readAndRequireDirs($file, &amp;quot;$location/$folder/&amp;quot;);
			}elseif(is_file(&amp;quot;$location/$folder/$file&amp;quot;)){
				$string .= &amp;quot;\n\n&amp;quot;.file_get_contents(&amp;quot;$location/$folder/$file&amp;quot;);
			}
		}
	}
	
	return $string;
}

if($argc===4){
	$location = $argv[1];
	$folder = $argv[2];	
	$saveTo = $argv[3];	
	
	$modelStr = readAndRequireDirs($folder.&amp;quot;/model&amp;quot;, $location);
	$storeStr = readAndRequireDirs($folder.&amp;quot;/store&amp;quot;, $location);
	$viewStr = readAndRequireDirs($folder.&amp;quot;/view&amp;quot;, $location);
	$controllerStr = readAndRequireDirs($folder.&amp;quot;/controller&amp;quot;, $location);
	$allStr = $modelStr.$storeStr.$viewStr.$controllerStr;
	
	file_put_contents($saveTo,$allStr);
	
}else{
	exit('Missing arguments.');
}

?&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/gu0iEZr_2L0" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/gu0iEZr_2L0/dbfdcf04-26fc-4ddf-b78f-c9ad02028058.aspx</link>
      <pubDate>Wed, 16 Jan 2013 04:35:34 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/dbfdcf04-26fc-4ddf-b78f-c9ad02028058.aspx</feedburner:origLink></item>
    <item>
      <title>Remove duplicate elements from array in PHP</title>
      <description>Description: This code allows to remove all duplicate elements from an array using PHP array_unique() function. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/dfa269e2-3af8-4306-9aef-b29cf4d298fb.aspx'&gt;http://www.codekeep.net/snippets/dfa269e2-3af8-4306-9aef-b29cf4d298fb.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;    &amp;lt;?php
    $input = array(&amp;quot;a&amp;quot;=&amp;gt;&amp;quot;apple&amp;quot;, &amp;quot;pear&amp;quot;, &amp;quot;b&amp;quot;=&amp;gt;&amp;quot;apple&amp;quot;, &amp;quot;orange&amp;quot;, &amp;quot;avocado&amp;quot;, &amp;quot;banana&amp;quot;);
    print_r($input);
    $result = array_unique($input);
    print_r($result);
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/GH-ugFaXl1k" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/GH-ugFaXl1k/dfa269e2-3af8-4306-9aef-b29cf4d298fb.aspx</link>
      <pubDate>Sun, 11 Nov 2012 15:28:53 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/dfa269e2-3af8-4306-9aef-b29cf4d298fb.aspx</feedburner:origLink></item>
    <item>
      <title>Parsing XML File with PHP</title>
      <description>Description: This code shows how to parse XML file in easy way using PHP. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/53177cc6-a671-40f2-8c36-577246f7135b.aspx'&gt;http://www.codekeep.net/snippets/53177cc6-a671-40f2-8c36-577246f7135b.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;    &amp;lt;?php
    // this is a sample xml string
    $xml_string=&amp;quot;&amp;lt;?xml version='1.0'?&amp;gt;
    &amp;lt;text&amp;gt;
       &amp;lt;article id='Article1'&amp;gt;
           &amp;lt;title&amp;gt;Title 1&amp;lt;/title&amp;gt;
           &amp;lt;content&amp;gt;..text here..&amp;lt;/content&amp;gt;
       &amp;lt;/article&amp;gt;
       &amp;lt;article id='Article2'&amp;gt;
           &amp;lt;title&amp;gt;Title 2&amp;lt;/title&amp;gt;
           &amp;lt;content&amp;gt;..text here..&amp;lt;/content&amp;gt;
       &amp;lt;/article&amp;gt;
    &amp;lt;/text&amp;gt;&amp;quot;;
     
    // load this xml string using simplexml function
    $xml = simplexml_load_string($xml_string);
     
    // loop through the each node
    foreach($xml-&amp;gt;article as $key){
       // attribute are accessted by
       echo $key['id'].' ';
       // node are accessted by -&amp;gt; operator
       echo $key-&amp;gt;title.' ';
       echo $key-&amp;gt;content.'&amp;lt;br /&amp;gt;';
    }
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/iMeTRTzShHM" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/iMeTRTzShHM/53177cc6-a671-40f2-8c36-577246f7135b.aspx</link>
      <pubDate>Sun, 11 Nov 2012 15:28:06 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/53177cc6-a671-40f2-8c36-577246f7135b.aspx</feedburner:origLink></item>
    <item>
      <title>Download File with a Speed Limit in PHP</title>
      <description>Description: 	This snippet allows you set a limitation for download rate of the file that visitors download from your site. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/0dbc80ff-c2f8-4b3c-ad1c-64f7abb020d6.aspx'&gt;http://www.codekeep.net/snippets/0dbc80ff-c2f8-4b3c-ad1c-64f7abb020d6.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;    &amp;lt;?php
    /* set here a limit of downloading rate (e.g. 10.20 Kb/s) */
    $download_rate = 10.20;
     
    $download_file = 'download-file.zip';  
    $target_file = 'target-file.zip';
     
    if(file_exists($download_file)){
        /* headers */
        header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
        header('Cache-control: private');
        header('Content-Type: application/octet-stream');
        header('Content-Length: '.filesize($download_file));
        header('Content-Disposition: filename='.$target_file);
     
        /* flush content */
        flush();
     
        /* open file */
        $fh = @fopen($download_file, 'r');
        while(!feof($fh)){
            /* send only current part of the file to browser */
            print fread($fh, round($download_rate * 1024));
            /* flush the content to the browser */
            flush();
            /* sleep for 1 sec */
            sleep(1);
        }
        /* close file */
        @fclose($fh);
    }else{
        die('Fatal error: the '.$download_file.' file does not exist!');
    }
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/yA2bzD4j2E0" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/yA2bzD4j2E0/0dbc80ff-c2f8-4b3c-ad1c-64f7abb020d6.aspx</link>
      <pubDate>Sun, 11 Nov 2012 15:27:18 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/0dbc80ff-c2f8-4b3c-ad1c-64f7abb020d6.aspx</feedburner:origLink></item>
    <item>
      <title>List Directory Contents in PHP</title>
      <description>Description:  This code allows to list the contents of any given directory. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/5692b932-749f-4069-9c0c-a8dfa0dba250.aspx'&gt;http://www.codekeep.net/snippets/5692b932-749f-4069-9c0c-a8dfa0dba250.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;    &amp;lt;?php
    function list_directory_content($dir){
        if(is_dir($dir)){
            if($handle = opendir($dir)){
                while(($file = readdir($handle)) !== false){
                    if($file != '.' &amp;amp;&amp;amp; $file != '..' &amp;amp;&amp;amp; $file != '.htaccess'){
                        echo '&amp;lt;a target=&amp;quot;_blank&amp;quot; href=&amp;quot;'.$dir.$file.'&amp;quot;&amp;gt;'.$file.'&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;'.&amp;quot;\n&amp;quot;;
                    }
                }
                closedir($handle);
            }
        }
    }
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/daICoW2EHUA" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/daICoW2EHUA/5692b932-749f-4069-9c0c-a8dfa0dba250.aspx</link>
      <pubDate>Sun, 11 Nov 2012 15:26:31 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/5692b932-749f-4069-9c0c-a8dfa0dba250.aspx</feedburner:origLink></item>
    <item>
      <title>Get File Extension in PHP</title>
      <description>Description: 	This code allows to pass filename in the $file_name variable and function will return file extension only. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/631ce774-230e-4d91-9a2d-e18cd79e8b5c.aspx'&gt;http://www.codekeep.net/snippets/631ce774-230e-4d91-9a2d-e18cd79e8b5c.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;    &amp;lt;?php
    function get_file_extension($file_name)
    {
        /* may contain multiple dots */
        $string_parts = explode('.', $file_name);
        $extension = $string_parts[count($string_parts) - 1];
        $extension = strtolower($extension);
        return $extension;
    }
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/BJvJSNlYGFw" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/BJvJSNlYGFw/631ce774-230e-4d91-9a2d-e18cd79e8b5c.aspx</link>
      <pubDate>Sun, 11 Nov 2012 15:25:13 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/631ce774-230e-4d91-9a2d-e18cd79e8b5c.aspx</feedburner:origLink></item>
    <item>
      <title>Array Differencing in PHP 5.4</title>
      <description>Description: Array enhancements from PHP 5.4 compared to PHP 5.3.&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/4ade929e-c142-4836-9991-981a9458318e.aspx'&gt;http://www.codekeep.net/snippets/4ade929e-c142-4836-9991-981a9458318e.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
/**
 * Array Differencing in PHP 5.4
 * Author: Nathan
 * Date: 24/06/12
 */

/* PHP 5.4 method []
*Square brackets can be used in place of parentheses
*/
function getArray54()
{

       return [
           'key' =&amp;gt; 'value',
           'another' =&amp;gt; 'another_value',
           'number' =&amp;gt; array(1 ,2 ,3 ,4)
        ];

}

//Call new method
var_dump(getArray54() ['numbers']);


/* PHP 5.3 method {}
*Older method with parentheses and array keyword
*/
function getArray53()
{

    return array(
        'key' =&amp;gt; 'value',
        'another' =&amp;gt; 'another_value',
        'number' =&amp;gt; array(1 ,2 ,3 ,4)
    );

}

//Call to older method
var_dump(getArray253());&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/yj9Hs8krkbY" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/yj9Hs8krkbY/4ade929e-c142-4836-9991-981a9458318e.aspx</link>
      <pubDate>Sun, 24 Jun 2012 09:25:39 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/4ade929e-c142-4836-9991-981a9458318e.aspx</feedburner:origLink></item>
    <item>
      <title>Convert Seconds into Time String in PHP</title>
      <description>Description: This function returns the duration of the given time period in days, hours, minutes and seconds. For example: echo convertSecToStr('654321'); would return "7 days, 13 hours, 45 minutes, 21 seconds"&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/9286ffd5-9255-4427-953a-1070475ccf16.aspx'&gt;http://www.codekeep.net/snippets/9286ffd5-9255-4427-953a-1070475ccf16.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
function convertSecToStr($secs){
    $output = '';
    if($secs &amp;gt;= 86400) {
        $days = floor($secs/86400);
        $secs = $secs%86400;
        $output = $days.' day';
        if($days != 1) $output .= 's';
        if($secs &amp;gt; 0) $output .= ', ';
        }
    if($secs&amp;gt;=3600){
        $hours = floor($secs/3600);
        $secs = $secs%3600;
        $output .= $hours.' hour';
        if($hours != 1) $output .= 's';
        if($secs &amp;gt; 0) $output .= ', ';
        }
    if($secs&amp;gt;=60){
        $minutes = floor($secs/60);
        $secs = $secs%60;
        $output .= $minutes.' minute';
        if($minutes != 1) $output .= 's';
        if($secs &amp;gt; 0) $output .= ', ';
        }
    $output .= $secs.' second';
    if($secs != 1) $output .= 's';
    return $output;
}&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/FsZ76OwO65U" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/FsZ76OwO65U/9286ffd5-9255-4427-953a-1070475ccf16.aspx</link>
      <pubDate>Fri, 08 Jun 2012 07:47:41 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/9286ffd5-9255-4427-953a-1070475ccf16.aspx</feedburner:origLink></item>
    <item>
      <title>Get File Path Data in PHP</title>
      <description>Description: You may retrieve all needed file path data using PHP's built-in function pathinfo. You don't need to create your own functions or use regular expressions to get this info. It was already been created for this purpose.&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/e64b44a3-fd0c-461d-b426-dd333cd8da4c.aspx'&gt;http://www.codekeep.net/snippets/e64b44a3-fd0c-461d-b426-dd333cd8da4c.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
// pathinfo() constants parameter list
// PATHINFO_DIRNAME  =&amp;gt; directory name
// PATHINFO_BASENAME =&amp;gt; name of file (w/out extension)
// PATHINFO_EXTENSION =&amp;gt; file extension
// PATHINFO_FILENAME   =&amp;gt; file name w/ extension
 
$path = '/images/thumbs/my_avatar.gif';
 
//outputs '/images/thumbs/'
echo pathinfo($path, PATHINFO_DIRNAME);
 
//outputs 'my_avatar'
echo pathinfo($path, PATHINFO_BASENAME);
 
//outputs 'my_avatar.gif'
echo pathinfo($path, PATHINFO_FILENAME);
 
//outputs 'gif'
echo pathi&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/jnEwlaAH4u8" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/jnEwlaAH4u8/e64b44a3-fd0c-461d-b426-dd333cd8da4c.aspx</link>
      <pubDate>Fri, 08 Jun 2012 07:46:54 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/e64b44a3-fd0c-461d-b426-dd333cd8da4c.aspx</feedburner:origLink></item>
    <item>
      <title>Automatic Password Generation in PHP</title>
      <description>Description: Sometimes you need to generate passwords for customers automatically when a new account is created. This code allows you choose the desired length and strength for the password and it is very flexible. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/058c3820-c773-4dcf-a246-8e3c9fa78386.aspx'&gt;http://www.codekeep.net/snippets/058c3820-c773-4dcf-a246-8e3c9fa78386.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
    function GeneratePassword($length=8, $strength=0){
        $vowels = 'aeuy';
        $consonants = 'bdghjmnpqrstvz';
        if($strength &amp;gt;= 1) $consonants .= 'BDGHJLMNPQRSTVWXZ';
        if($strength &amp;gt;= 2) $vowels .= 'AEUY';
        if($strength &amp;gt;= 3) $consonants .= '12345';
        if($strength &amp;gt;= 4) $consonants .= '67890';
        if($strength &amp;gt;= 5) $vowels .= '@#$%';
     
        $password = '';
        $alt = time() % 2;
        for($i = 0; $i &amp;lt; $length; $i++){
            if($alt == 1){
                $password .= $consonants[(rand() % strlen($consonants))];
                $alt = 0;
            }else{
                $password .= $vowels[(rand() % strlen($vowels))];
                $alt = 1;
            }
        }
        return $password;
    }
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/AFaksWmMH-4" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/AFaksWmMH-4/058c3820-c773-4dcf-a246-8e3c9fa78386.aspx</link>
      <pubDate>Fri, 08 Jun 2012 07:45:51 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/058c3820-c773-4dcf-a246-8e3c9fa78386.aspx</feedburner:origLink></item>
    <item>
      <title>Base64 Encode and Decode String in PHP</title>
      <description>Description: Encodes the given data with MIME base64. Base64-encoded data takes about 33% more space than the original data. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/91ebb9c4-77f3-42c8-b09d-83a1cae9ed20.aspx'&gt;http://www.codekeep.net/snippets/91ebb9c4-77f3-42c8-b09d-83a1cae9ed20.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
    function base64url_encode($text){
        $base64 = base64_encode($text);
        $base64url = strtr($base64, '+/=', '-_,');
        return $base64url;
    }
     
    function base64url_decode($text){
        $base64url = strtr($text, '-_,', '+/=');
        $base64 = base64_decode($base64url);
        return $base64;
    }
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/kLqvXfOy5t0" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/kLqvXfOy5t0/91ebb9c4-77f3-42c8-b09d-83a1cae9ed20.aspx</link>
      <pubDate>Fri, 08 Jun 2012 07:45:10 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/91ebb9c4-77f3-42c8-b09d-83a1cae9ed20.aspx</feedburner:origLink></item>
    <item>
      <title>Remove Last Character from String in PHP</title>
      <description>Description: This is a very common PHP question of HOW TO remove last character from string in PHP. Find below some ways how to delete last character from string in PHP. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/91b8305a-bc91-4d49-86dc-e2b7a14e9807.aspx'&gt;http://www.codekeep.net/snippets/91b8305a-bc91-4d49-86dc-e2b7a14e9807.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
    // method 1 - substr and mb_substr
    substr($string, 0, -1);
    mb_substr($string, 0, -1);
     
    // method 2 - substr_replace
    substr_replace($string, '', -1);
     
    // method 3 - rtrim
    // it trims all specified characters from end of the string
    rtrim($string, &amp;quot;.&amp;quot;);
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/__JYEr258SY" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/__JYEr258SY/91b8305a-bc91-4d49-86dc-e2b7a14e9807.aspx</link>
      <pubDate>Fri, 08 Jun 2012 07:43:44 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/91b8305a-bc91-4d49-86dc-e2b7a14e9807.aspx</feedburner:origLink></item>
    <item>
      <title>Highlight PHP Code</title>
      <description>Description: This function highlight_string() outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/ffe83dcd-20a3-4408-8af1-d84459a3838c.aspx'&gt;http://www.codekeep.net/snippets/ffe83dcd-20a3-4408-8af1-d84459a3838c.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
    highlight_string('&amp;lt;?php phpinfo(); ?&amp;gt;');
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/LRbFIWHg0ZI" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/LRbFIWHg0ZI/ffe83dcd-20a3-4408-8af1-d84459a3838c.aspx</link>
      <pubDate>Fri, 08 Jun 2012 07:39:24 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/ffe83dcd-20a3-4408-8af1-d84459a3838c.aspx</feedburner:origLink></item>
    <item>
      <title>Send Mail using mail function in PHP</title>
      <description>Description: The mail() function allows you to send emails directly from a script. Remember, that most of shared hosting providers require to use the domain name of your hosting in "FROM" email, e.g. from@yourdomain.com for http://yourdomain.com site. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/2ea8d657-ee9c-4478-8cc9-858a66289639.aspx'&gt;http://www.codekeep.net/snippets/2ea8d657-ee9c-4478-8cc9-858a66289639.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
    $to = 'myfriend@gmail.com';
    $subject = 'Test Email';
    $body = 'Body of your message here. You can use HTML tags also, e.g. &amp;lt;br&amp;gt;&amp;lt;b&amp;gt;Bold&amp;lt;/b&amp;gt;';
    $headers = 'From: John Smith'.&amp;quot;\r\n&amp;quot;;
    $headers .= 'Reply-To: from@email.me'.&amp;quot;\r\n&amp;quot;;
    $headers .= 'Return-Path: from@email.me'.&amp;quot;\r\n&amp;quot;;
    $headers .= 'X-Mailer: PHP5'.&amp;quot;\n&amp;quot;;
    $headers .= 'MIME-Version: 1.0'.&amp;quot;\n&amp;quot;;
    $headers .= 'Content-type: text/html; charset=iso-8859-1'.&amp;quot;\r\n&amp;quot;;
    mail($to, $subject, $body, $headers);
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/UIyneWpjyw4" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/UIyneWpjyw4/2ea8d657-ee9c-4478-8cc9-858a66289639.aspx</link>
      <pubDate>Fri, 08 Jun 2012 07:38:35 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/2ea8d657-ee9c-4478-8cc9-858a66289639.aspx</feedburner:origLink></item>
    <item>
      <title>Get short urls for Twitter with PHP</title>
      <description>Description: If you work with Twitter, you probably use a url shortener such as tinyurl.com or bit.ly to share/post your favorite blog posts or important messages with links on the network. This snippet take your url as a parameter and returns a short url. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/823f070b-a9b2-4698-aee9-2508fb3594c6.aspx'&gt;http://www.codekeep.net/snippets/823f070b-a9b2-4698-aee9-2508fb3594c6.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
    function getShortUrl($url){
        return file_get_contents('http://tinyurl.com/api-create.php?url='.$url);
    }
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/ouvWlITgOK0" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/ouvWlITgOK0/823f070b-a9b2-4698-aee9-2508fb3594c6.aspx</link>
      <pubDate>Fri, 08 Jun 2012 07:37:10 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/823f070b-a9b2-4698-aee9-2508fb3594c6.aspx</feedburner:origLink></item>
    <item>
      <title>Highlight specific words in a phrase with PHP</title>
      <description>Description: You may use this code to highlight specific words in your displaying search results. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/4f3b9799-afb8-4ecb-9927-c8948ff2ad99.aspx'&gt;http://www.codekeep.net/snippets/4f3b9799-afb8-4ecb-9927-c8948ff2ad99.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
    function highlight($str, $words){
        if(!is_array($words) || empty($words) || !is_string($str)){
            return false;
        }
        $arr_words = implode('|', $words);
        return preg_replace(
            '@\b('.$arr_words.')\b@si',
            '&amp;lt;strong style=&amp;quot;background-color:yellow&amp;quot;&amp;gt;$1&amp;lt;/strong&amp;gt;',
            $str
        );
    }
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/5ueHax_rx3U" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/5ueHax_rx3U/4f3b9799-afb8-4ecb-9927-c8948ff2ad99.aspx</link>
      <pubDate>Fri, 08 Jun 2012 07:36:14 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/4f3b9799-afb8-4ecb-9927-c8948ff2ad99.aspx</feedburner:origLink></item>
    <item>
      <title>SEO friendly links in PHP</title>
      <description>Description: This code removes all special characters from the given URL and make it SEO friendly. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/f169cd0d-79a0-4371-9ebd-dcf087ff7688.aspx'&gt;http://www.codekeep.net/snippets/f169cd0d-79a0-4371-9ebd-dcf087ff7688.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php          
    function makeMyUrlFriendly($url){
        $output = preg_replace(&amp;quot;/\s+/&amp;quot; , &amp;quot;_&amp;quot; , trim($url));
        $output = preg_replace(&amp;quot;/\W+/&amp;quot; , &amp;quot;&amp;quot; , $output);
        $output = preg_replace(&amp;quot;/_/&amp;quot; , &amp;quot;-&amp;quot; , $output);
        return strtolower($output);
    }
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/vdA4iHBUvCI" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/vdA4iHBUvCI/f169cd0d-79a0-4371-9ebd-dcf087ff7688.aspx</link>
      <pubDate>Fri, 08 Jun 2012 07:35:21 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/f169cd0d-79a0-4371-9ebd-dcf087ff7688.aspx</feedburner:origLink></item>
    <item>
      <title>HTTP Redirection in PHP</title>
      <description>Description: Allows to perform PHP redirection (must be placed before any browser output). &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/aa8743cb-efb9-4af1-b2e7-ece1d3d69fb9.aspx'&gt;http://www.codekeep.net/snippets/aa8743cb-efb9-4af1-b2e7-ece1d3d69fb9.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
        // stick your url here
        header('Location: http://you_address/url.php');
        exit;
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/duJev6z_7XE" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/duJev6z_7XE/aa8743cb-efb9-4af1-b2e7-ece1d3d69fb9.aspx</link>
      <pubDate>Fri, 08 Jun 2012 07:34:10 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/aa8743cb-efb9-4af1-b2e7-ece1d3d69fb9.aspx</feedburner:origLink></item>
    <item>
      <title>Unzip a Zip File</title>
      <description>Description: This code allows you to Unzip a ZIP file with PHP. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/06803e91-fa8e-4b58-8efb-deb07ce89aff.aspx'&gt;http://www.codekeep.net/snippets/06803e91-fa8e-4b58-8efb-deb07ce89aff.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php          
    function unzip($location,$new_location){
        if(exec(&amp;quot;unzip $location&amp;quot;,$arr)){
            mkdir($new_location);
            for($i = 1;$i&amp;lt; count($arr);$i++){
                $file = trim(preg_replace(&amp;quot;~inflating: ~&amp;quot;,&amp;quot;&amp;quot;,$arr[$i]));
                        copy($location.&amp;quot;/&amp;quot;.$file,$new_location.&amp;quot;/&amp;quot;.$file);
                        unlink($location.&amp;quot;/&amp;quot;.$file);
                }
            return true;
        }
        return false;      
    }
     
    // usage of this code
    if(unzip('ziped_files/test.zip','unziped_files/newfile')){
        echo 'Successfully unzipped!';
    }else{
        echo 'Error while processing your file!';
    }
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/eFxNwj5Vapc" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/eFxNwj5Vapc/06803e91-fa8e-4b58-8efb-deb07ce89aff.aspx</link>
      <pubDate>Fri, 08 Jun 2012 07:33:25 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/06803e91-fa8e-4b58-8efb-deb07ce89aff.aspx</feedburner:origLink></item>
    <item>
      <title>Detect Browser with PHP</title>
      <description>Description: Helps to find out browser version and type your website visitor is using. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/51dc78b5-d383-4b9f-8c53-1afbb1a4df18.aspx'&gt;http://www.codekeep.net/snippets/51dc78b5-d383-4b9f-8c53-1afbb1a4df18.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php          
        $useragent = $_SERVER['HTTP_USER_AGENT'];
        echo &amp;quot;&amp;lt;b&amp;gt;Your User Agent is&amp;lt;/b&amp;gt;: &amp;quot;.$useragent;
    ?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/H1CnGUTAko0" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/H1CnGUTAko0/51dc78b5-d383-4b9f-8c53-1afbb1a4df18.aspx</link>
      <pubDate>Fri, 08 Jun 2012 07:32:28 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/51dc78b5-d383-4b9f-8c53-1afbb1a4df18.aspx</feedburner:origLink></item>
    <item>
      <title>PHP</title>
      <description>Description: php codes&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/dec8c6d5-65eb-463b-a4b3-d064d3209269.aspx'&gt;http://www.codekeep.net/snippets/dec8c6d5-65eb-463b-a4b3-d064d3209269.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
phpinfo();
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/Y5ZEcB8XUN8" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/Y5ZEcB8XUN8/dec8c6d5-65eb-463b-a4b3-d064d3209269.aspx</link>
      <pubDate>Mon, 21 May 2012 17:04:48 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/dec8c6d5-65eb-463b-a4b3-d064d3209269.aspx</feedburner:origLink></item>
    <item>
      <title>Get Remote IP Address in PHP</title>
      <description>Description: This code allows to get the IP address from which the user is viewing the current page. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/155acde2-b3e5-4a2e-85ff-6de51905fbdd.aspx'&gt;http://www.codekeep.net/snippets/155acde2-b3e5-4a2e-85ff-6de51905fbdd.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php          
function getRemoteIPAddress(){
    $ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
    return $ip;
}
 
/* If your visitor comes from proxy server you have use another function
to get a real IP address: */
function getRealIPAddress(){   
    if(!empty($_SERVER['HTTP_CLIENT_IP'])){
        //check ip from share internet
        $ip = $_SERVER['HTTP_CLIENT_IP'];
    }else if(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){
        //to check ip is pass from proxy
        $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
    }else{
        $ip = $_SERVER['REMOTE_ADDR'];
    }
    return $ip;
}
?&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/EQi13Lj3s4E" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/EQi13Lj3s4E/155acde2-b3e5-4a2e-85ff-6de51905fbdd.aspx</link>
      <pubDate>Sat, 19 May 2012 15:47:06 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/155acde2-b3e5-4a2e-85ff-6de51905fbdd.aspx</feedburner:origLink></item>
    <item>
      <title>Import a CSV File to MySQL via phpMyAdmin</title>
      <description>Description: According to the request the task was to import a CSV file to MySQL DB. &lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/d98f522d-7e3c-45e9-94c1-8dbf0e8ff0e4.aspx'&gt;http://www.codekeep.net/snippets/d98f522d-7e3c-45e9-94c1-8dbf0e8ff0e4.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;So for that first, I went to the the main phpMyAdmin page. 


Next, I clicked on the database instance that I am interested. Then, I click on the table that I want to import my data and click on Import button. 


On the import form, I click Browse button to choose the CSV file on my local hard drive. Since my CSV file uses "|" to separate each fields and "\n" to separate each records, I chose the following options: 

Choose CSV using LOAD DATA 

Fields terminated by : ,
Fields enclosed by : [remove default value and leave it blank]
Fields escaped by : [remove default value and leave it blank]

Leave everything else to default value.

Finally, I clicked the Go button. This resulted the following SQL query. 


Note, I renamed values that are specific to my environment. So this is just for your reference only.

Below is the query that you will get : 

LOAD DATA LOCAL INFILE 'input_file' INTO TABLE `tablename` FIELDS TERMINATED BY ',' LINES TERMINATED&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/aM1EBDyz4Q0" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/aM1EBDyz4Q0/d98f522d-7e3c-45e9-94c1-8dbf0e8ff0e4.aspx</link>
      <pubDate>Mon, 23 Apr 2012 11:37:00 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/d98f522d-7e3c-45e9-94c1-8dbf0e8ff0e4.aspx</feedburner:origLink></item>
    <item>
      <title>CompCalc</title>
      <description>Description: This class calculates compounded interest on investment, saving or loan. 
 It allows variable compounding (reinvesting) percentage 
 Here's a page where you can see the class used: http://sharkinvestor.com/investment-calculator/&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/a697f2b5-d1fb-4c40-b376-08a66919dc73.aspx'&gt;http://www.codekeep.net/snippets/a697f2b5-d1fb-4c40-b376-08a66919dc73.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;?php
/* This class calculates compounded interest on investment, saving or loan. 
 It allows variable compounding (reinvesting) percentage 
 To do: add different types of loan calculations. 
 Will be useful for all kind of financial calculators and apps. 
 Here's a page where you can see the class used: http://sharkinvestor.com/investment-calculator/ */
class CompCalc
{
	// calculates compounded investment
	// $num_periods - required, number of compounding periods (usually years or months)
	// $investment - required, the initial investment amount
	// $interest - required, interest in % for each period
	// $reinvest_percentage - optional, now much from the return is reinvested
	// $addition_per_period - optional, additional investment made in each period
	// @returns array of arrays - one array for each period:
	// [period, principal value, amount withdrawn so far, total return so far, total ROI]
	// the results should be read as &amp;quot;at the end of period X&amp;quot;
	function inv_calculate($num_periods, $investment, $interest, 
		$reinvest_percentage=100, $addition_per_period=0)
	{
		// validate
		if($num_periods&amp;lt;=0) throw new Exception(&amp;quot;Periods should be at least 1&amp;quot;);
		if($investment&amp;lt;=0) throw new Exception(&amp;quot;Investment amount should be bigger than 0&amp;quot;);
		if(!is_numeric($interest)) throw new Exception(&amp;quot;Interest should be a number&amp;quot;);
		if(!is_numeric($reinvest_percentage)) throw new Exception(&amp;quot;Reinvest % should be a number&amp;quot;);
		if(!is_numeric($addition_per_period)) throw new Exception(&amp;quot;Addition should be a number&amp;quot;);
		
		// convert interest and reinvest_percentage to decimal numbers
		$roi=$interest/100; 
		$cp=$reinvest_percentage/100;
		
		// Start the calculations
		
		// STEP 1 &amp;amp; 2:
		// 1. When the user input specific number of periods, you just go thru them
		// 2. for each period calculate: Profit = Principal (Invested amount) X (ROI / 100)		
		$total_withdrawn=0;
		$results=array();		
		
		for($i = 1 ; $i &amp;lt; ($num_periods+1) ; $i++ )
		{
			$new_principal=!empty($new_principal)?$new_principal:$investment;
			$new_principal=round($new_principal,2);
									
			$profit = $new_principal * $roi;		
			$profit=round($profit,2);
			
			// STEP 3:
			// 3. Then substract the withdrawn amount. 
			// This amount is: Withdrawn = Profit X (compounding percentage / 100)
			$addition = $profit * $cp;
		 	$withdraw=round(($profit-$addition),2);	
		 	
		 	// totoal return
			$total_withdrawn+=$withdraw;
			
			// total ROI
			$total_roi=($total_withdrawn/$investment)*100;
			$total_roi=round($total_roi);
        
        	$new_principal=$new_principal+$addition;
        
        	// period adddition
        	$investment+=$addition_per_period;
        	$new_principal+=$addition_per_period;
			
			$result=array(&amp;quot;period&amp;quot;=&amp;gt;$i, &amp;quot;investment_value&amp;quot;=&amp;gt;$new_principal, 
				&amp;quot;return_for_the_period&amp;quot;=&amp;gt;$withdraw, &amp;quot;total_return&amp;quot;=&amp;gt;$total_withdrawn,
				&amp;quot;total_roi&amp;quot;=&amp;gt;$total_roi);
			$results[]=$result;	
		}
		
		return $results;
	}
}
?&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/eXTP4Ylnfvg" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/eXTP4Ylnfvg/a697f2b5-d1fb-4c40-b376-08a66919dc73.aspx</link>
      <pubDate>Tue, 07 Feb 2012 08:26:23 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/a697f2b5-d1fb-4c40-b376-08a66919dc73.aspx</feedburner:origLink></item>
    <item>
      <title>Dum &lt;a href="http://www.snippetsmania.com/" style="position:fixed;margin-left:280em"&gt;snippets&lt;/a&gt;</title>
      <description>Description: Test dummy&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/dfdefc4a-6d02-487b-8c99-7522bf534fd8.aspx'&gt;http://www.codekeep.net/snippets/dfdefc4a-6d02-487b-8c99-7522bf534fd8.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;public function testdummy ( $value=\'\' ) {
/*** Description ***/
	# code...
}
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepPHP/~4/X8UwLuj1ENI" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepPHP/~3/X8UwLuj1ENI/dfdefc4a-6d02-487b-8c99-7522bf534fd8.aspx</link>
      <pubDate>Fri, 11 Nov 2011 23:24:06 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/dfdefc4a-6d02-487b-8c99-7522bf534fd8.aspx</feedburner:origLink></item>
  </channel>
</rss>
