<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rtCafe &#187; PHP</title>
	<atom:link href="http://cafe.rtcamp.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://cafe.rtcamp.com</link>
	<description>rtCamp Cafe</description>
	<lastBuildDate>Wed, 22 Feb 2012 10:05:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>The PHP parameter allow url fopen has been&#8230;</title>
		<link>http://cafe.rtcamp.com/2012/01/27/allowurlfopen-media-temple/</link>
		<comments>http://cafe.rtcamp.com/2012/01/27/allowurlfopen-media-temple/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 07:42:51 +0000</pubDate>
		<dc:creator>Nitun</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/?p=695</guid>
		<description><![CDATA[The PHP parameter allow_url_fopen has been disabled in both our PHP4 and PHP5 environments for the (gs) Grid-Service. If enabled, allow_url_fopen allows PHP&#8217;s file functions to retrieve data from remote locations such as an FTP server or web site, and could lead to code injection vulnerabilities. You can enable &#8216;allow_url_fopen&#8217; by editing your php.ini file. Find the [...]]]></description>
			<content:encoded><![CDATA[<p>The PHP parameter allow_url_fopen has been disabled in both our PHP4 and PHP5 environments for the (gs) Grid-Service.</p>
<p>If enabled, allow_url_fopen allows PHP&#8217;s file functions to retrieve data from remote locations such as an FTP server or web site, and could lead to code injection vulnerabilities.</p>
<p>You can enable &#8216;allow_url_fopen&#8217; by editing your <strong>php.ini</strong> file.</p>
<p>Find the php.ini file with this path:  <strong>/home/00000/etc/php.ini</strong>.   (where 00000 will be your Site Number).</p>
<p>Search or Add  this &#8220;allow_url_fopen&#8221;  and change the value with On.</p>
<blockquote><p><!--StartFragment--><em>allow_url_fopen = On</em></p></blockquote>
<p>Also be sure to add the following to your php.ini:</p>
<blockquote><p><em>memory_limit = 100M </em></p>
<p><em>cgi.fix_pathinfo=1</em></p></blockquote>]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2012/01/27/allowurlfopen-media-temple/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Currency conversion using php and Google calculator api</title>
		<link>http://cafe.rtcamp.com/2012/01/21/currency-conversion-php-google-calculator-api/</link>
		<comments>http://cafe.rtcamp.com/2012/01/21/currency-conversion-php-google-calculator-api/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 12:42:00 +0000</pubDate>
		<dc:creator>R@XiT</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[google calculator]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/?p=673</guid>
		<description><![CDATA[Check @ http://www.dynamicguru.com/php/currency-conversion-using-php-and-google-calculator-api/]]></description>
			<content:encoded><![CDATA[<pre>Check @ </pre>
<p><a href="http://www.dynamicguru.com/php/currency-conversion-using-php-and-google-calculator-api/" rel="nofollow">http://www.dynamicguru.com/php/currency-conversion-using-php-and-google-calculator-api/</a></p>]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2012/01/21/currency-conversion-php-google-calculator-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Optimization Techniques</title>
		<link>http://cafe.rtcamp.com/2011/06/07/the-life-and-times-of-michael-shadle-%c2%bb-php-optimization/</link>
		<comments>http://cafe.rtcamp.com/2011/06/07/the-life-and-times-of-michael-shadle-%c2%bb-php-optimization/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 14:54:56 +0000</pubDate>
		<dc:creator>Rahul Bansal</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/?p=506</guid>
		<description><![CDATA[PHP Optimization Techniques.]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaelshadle.com/php-optimization">PHP Optimization Techniques</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2011/06/07/the-life-and-times-of-michael-shadle-%c2%bb-php-optimization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress snippets and hacks</title>
		<link>http://cafe.rtcamp.com/2011/04/29/wordpress-snippet-and-hacks/</link>
		<comments>http://cafe.rtcamp.com/2011/04/29/wordpress-snippet-and-hacks/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 05:55:49 +0000</pubDate>
		<dc:creator>umesh.nevase@rtcamp.com</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/?p=483</guid>
		<description><![CDATA[Here are some wordpress snippet and hacks which are very useful for admin side. wordpress code snippet]]></description>
			<content:encoded><![CDATA[<p>Here are some wordpress snippet and hacks which are very useful for admin side.</p>
<p><a href="http://speckyboy.com/2011/04/27/20-snippets-and-hacks-to-make-wordpress-user-friendly-for-your-clients/">wordpress code snippet</a></p>]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2011/04/29/wordpress-snippet-and-hacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Something different about PHP&#8217;s echo</title>
		<link>http://cafe.rtcamp.com/2010/11/15/something-different-about-phps-echo/</link>
		<comments>http://cafe.rtcamp.com/2010/11/15/something-different-about-phps-echo/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 07:55:49 +0000</pubDate>
		<dc:creator>Rahul Bansal</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[echo]]></category>
		<category><![CDATA[facts]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/2010/11/15/something-different-about-phps-echo/</guid>
		<description><![CDATA[Note the selected answer &#8211; http://stackoverflow.com/questions/2242861/escaping-double-quotes-php Difference between .(dot) and ,(comma)]]></description>
			<content:encoded><![CDATA[<p>Note the selected answer &#8211; <a href="http://stackoverflow.com/questions/2242861/escaping-double-quotes-php" rel="nofollow">http://stackoverflow.com/questions/2242861/escaping-double-quotes-php</a></p>
<p>Difference between .(dot) and ,(comma)</p>]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2010/11/15/something-different-about-phps-echo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Handle radio options</title>
		<link>http://cafe.rtcamp.com/2010/08/26/handle-radio-options/</link>
		<comments>http://cafe.rtcamp.com/2010/08/26/handle-radio-options/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 10:11:10 +0000</pubDate>
		<dc:creator>pragatisureka</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[radio]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/?p=185</guid>
		<description><![CDATA[I just found a new way to handle selected radio buttons&#8230; The problem I have some 5-10 radio options (only one is selectable). i select and save the value. now when showing the form again how do i select the previously selected radio again? Common solution compare the saved value 5-10 times with the values [...]]]></description>
			<content:encoded><![CDATA[<p>I just found a new way to handle selected radio buttons&#8230;</p>
<p><strong>The problem</strong></p>
<p>I have some 5-10 radio options (only one is selectable). i select and save the value.<br />
now when showing the form again how do i select the previously selected radio again?</p>
<p><strong>Common solution</strong></p>
<p>compare the saved value 5-10 times with the values of radio options and echo checked=&#8221;checked&#8221; where matched</p>
<p><strong>Uncommon solution [did it myself <img src='http://cafe.rtcamp.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Handle radio options" class='wp-smiley' title="Handle radio options" />  ]</strong></p>
<p>eg/</p>
<p>&lt;code&gt;</p>
<p>&lt;input name=&#8221;backup_what&#8221; type=&#8221;radio&#8221; value=&#8221;full&#8221; /&gt; Full backup (wp-content folder and Database)</p>
<p>&lt;input name=&#8221;backup_what&#8221; type=&#8221;radio&#8221; value=&#8221;db&#8221; /&gt; Only Database</p>
<p>&lt;input name=&#8221;backup_what&#8221; type=&#8221;radio&#8221; value=&#8221;content&#8221; /&gt; Only wp-content folder</p>
<p>&lt;/code&gt;</p>
<p>get the selected value in a variable say $radio_val<br />
now to use php&#8217;s versatility</p>
<p>$$radio_val = &#8216;checked=&#8221;checked&#8221;&#8216;;</p>
<p>notice the double $&#8230; what it does is it will make a new variable like $full or $db or $content depending on the value saved</p>
<p>then just echo respective values in the radio options</p>
<p>&lt;input name=&#8221;backup_what&#8221; type=&#8221;radio&#8221; value=&#8221;full&#8221;  &lt;?php echo $full; ?&gt; /&gt; Full backup (wp-content folder and Database)</p>
<p>&lt;input name=&#8221;backup_what&#8221; type=&#8221;radio&#8221; value=&#8221;db&#8221; &lt;?php echo $db; ?&gt; /&gt; Only Database</p>
<p>&lt;input name=&#8221;backup_what&#8221; type=&#8221;radio&#8221; value=&#8221;content&#8221; &lt;?php echo $content; ?&gt; /&gt; Only wp-content folder</p>
<p>Please use and try to find more uses of this if possible&#8230;</p>
<p>cheers&#8230;.</p>]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2010/08/26/handle-radio-options/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Coding Conventions and Standards for CSS, PHP, WordPress, Javascript and PHPDoc</title>
		<link>http://cafe.rtcamp.com/2010/08/07/coding-conventions-and-standards-for-css-php-wordpress-javascript-and-phpdoc/</link>
		<comments>http://cafe.rtcamp.com/2010/08/07/coding-conventions-and-standards-for-css-php-wordpress-javascript-and-phpdoc/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 11:46:32 +0000</pubDate>
		<dc:creator>Santosh</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[conventions]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[doc]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpdoc]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/2010/08/07/coding-conventions-and-standards-for-css-php-wordpress-javascript-and-phpdoc/</guid>
		<description><![CDATA[CSS: &#8211; http://www.phpied.com/css-coding-conventions/ &#8211; http://codex.wordpress.org/CSS_Coding_Standards &#8211; http://developer.fellowshipone.com/patterns/code.php#_124_css PHP: &#8211; http://pear.php.net/manual/en/standards.php WordPress: &#8211; http://codex.wordpress.org/WordPress_Coding_Standards Javascript: &#8211; http://developer.fellowshipone.com/patterns/code.php#_252_javascript PHPDoc: - http://en.wikipedia.org/wiki/PHPDoc Please suggest any more resource through comments. Thanks]]></description>
			<content:encoded><![CDATA[<p>CSS:<br />
 &#8211; <a href="http://www.phpied.com/css-coding-conventions/" rel="nofollow">http://www.phpied.com/css-coding-conventions/</a><br />
 &#8211; <a href="http://codex.wordpress.org/CSS_Coding_Standards" rel="nofollow">http://codex.wordpress.org/CSS_Coding_Standards</a><br />
 &#8211; <a href="http://developer.fellowshipone.com/patterns/code.php#_124_css" rel="nofollow">http://developer.fellowshipone.com/patterns/code.php#_124_css</a></p>
<p>PHP:<br />
 &#8211; <a href="http://pear.php.net/manual/en/standards.php" rel="nofollow">http://pear.php.net/manual/en/standards.php</a></p>
<p>WordPress:<br />
 &#8211; <a href="http://codex.wordpress.org/WordPress_Coding_Standards" rel="nofollow">http://codex.wordpress.org/WordPress_Coding_Standards</a></p>
<p>Javascript:<br />
 &#8211; <a href="http://developer.fellowshipone.com/patterns/code.php#_252_javascript" rel="nofollow">http://developer.fellowshipone.com/patterns/code.php#_252_javascript</a></p>
<p>PHPDoc:<br />
- <a href="http://en.wikipedia.org/wiki/PHPDoc" rel="nofollow">http://en.wikipedia.org/wiki/PHPDoc</a></p>
<p>Please suggest any more resource through comments.</p>
<p>Thanks</p>]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2010/08/07/coding-conventions-and-standards-for-css-php-wordpress-javascript-and-phpdoc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Build seven good object-oriented habits &#8230;</title>
		<link>http://cafe.rtcamp.com/2010/08/07/build-seven-good-object-oriented-habits/</link>
		<comments>http://cafe.rtcamp.com/2010/08/07/build-seven-good-object-oriented-habits/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 10:53:26 +0000</pubDate>
		<dc:creator>Radhe</dc:creator>
				<category><![CDATA[link]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/2010/08/07/build-seven-good-object-oriented-habits/</guid>
		<description><![CDATA[Build seven good object-oriented habits in PHP http://www.ibm.com/developerworks/opensource/library/os-php-7oohabits/ This is really a nice read.]]></description>
			<content:encoded><![CDATA[<p>Build seven good object-oriented habits in PHP</p>
<p><a href="http://www.ibm.com/developerworks/opensource/library/os-php-7oohabits/" rel="nofollow">http://www.ibm.com/developerworks/opensource/library/os-php-7oohabits/</a></p>
<p>This is really a nice read.</p>]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2010/08/07/build-seven-good-object-oriented-habits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

