<?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>Programming Facts &#187; PHP Programming</title>
	<atom:link href="http://www.programmingfacts.com/category/php-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.programmingfacts.com</link>
	<description></description>
	<lastBuildDate>Sun, 05 Feb 2012 08:16:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>[Google Adword API] Failed to get authToken. Reason: CaptchaRequired</title>
		<link>http://www.programmingfacts.com/google-adword-api-failed-authtoken/</link>
		<comments>http://www.programmingfacts.com/google-adword-api-failed-authtoken/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 08:16:00 +0000</pubDate>
		<dc:creator>Rakshit Patel</dc:creator>
				<category><![CDATA[Adword API]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[CaptchaRequired Google Adword API]]></category>
		<category><![CDATA[Failed to get authToken Google Adword API]]></category>

		<guid isPermaLink="false">http://www.programmingfacts.com/?p=1109</guid>
		<description><![CDATA[I was calling Google Adword API in loop to get the statistics of campaigns of all clients. When I execute the adword api and i got "Failed to get authToken. Reason: CaptchaRequired error". After executing that campaign statistics adword api call in loop, all other google adword api stops working and getting below error contineously.<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.programmingfacts.com/google-adword-api-failed-authtoken/' addthis:title='[Google Adword API] Failed to get authToken. Reason: CaptchaRequired' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_googlebuzz"></a><a class="addthis_button_digg"></a><a class="addthis_button_stumbleupon"></a><a class="addthis_button_delicious"></a><a class="addthis_button_myspace"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_reddit"></a></div>]]></description>
		<wfw:commentRss>http://www.programmingfacts.com/google-adword-api-failed-authtoken/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP] Stripslashes and fwrite not working</title>
		<link>http://www.programmingfacts.com/php-stripslashes-fwrite-working/</link>
		<comments>http://www.programmingfacts.com/php-stripslashes-fwrite-working/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 10:09:26 +0000</pubDate>
		<dc:creator>Rakshit Patel</dc:creator>
				<category><![CDATA[Helpful Tips and Tricks]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[fwrite Stripslashes Solved]]></category>
		<category><![CDATA[Stripslashes magic quotes solved]]></category>

		<guid isPermaLink="false">http://www.programmingfacts.com/?p=1061</guid>
		<description><![CDATA[I was working with one project and writing textarea's data into one file using fwrite function of PHP. It keeps adding forward slash whenever single quote comes in string. I have tried to use stripslashes but it did not work. I tried stripslashes twice but it did not work as well.<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.programmingfacts.com/php-stripslashes-fwrite-working/' addthis:title='[PHP] Stripslashes and fwrite not working' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_googlebuzz"></a><a class="addthis_button_digg"></a><a class="addthis_button_stumbleupon"></a><a class="addthis_button_delicious"></a><a class="addthis_button_myspace"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_reddit"></a></div>]]></description>
		<wfw:commentRss>http://www.programmingfacts.com/php-stripslashes-fwrite-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When to Use Functions in PHP?</title>
		<link>http://www.programmingfacts.com/when-to-use-functions-in-php/</link>
		<comments>http://www.programmingfacts.com/when-to-use-functions-in-php/#comments</comments>
		<pubDate>Fri, 13 May 2011 10:42:55 +0000</pubDate>
		<dc:creator>Rakshit Patel</dc:creator>
				<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[Core PHP Functions]]></category>
		<category><![CDATA[PHP Functions]]></category>

		<guid isPermaLink="false">http://www.programmingfacts.com/?p=1029</guid>
		<description><![CDATA[Whether you are new to programming or an intermediate programmer, learning new tricks can speed up your productivity and acquire more ideas for your program. This is also important for advanced programming languages such as PHP. The complexity of the language can be daunting at first, but thanks to using "Functions" in your code, it can save a lot of time by not having to type the code every time it is needed, and using less coding in your application.<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.programmingfacts.com/when-to-use-functions-in-php/' addthis:title='When to Use Functions in PHP?' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_googlebuzz"></a><a class="addthis_button_digg"></a><a class="addthis_button_stumbleupon"></a><a class="addthis_button_delicious"></a><a class="addthis_button_myspace"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_reddit"></a></div>]]></description>
		<wfw:commentRss>http://www.programmingfacts.com/when-to-use-functions-in-php/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[PHP] What is the difference between sort &amp; asort in php ?</title>
		<link>http://www.programmingfacts.com/php-difference-sort-asort/</link>
		<comments>http://www.programmingfacts.com/php-difference-sort-asort/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 10:48:50 +0000</pubDate>
		<dc:creator>Rakshit Patel</dc:creator>
				<category><![CDATA[Helpful Tips and Tricks]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[Difference between sort and asort php]]></category>

		<guid isPermaLink="false">http://www.programmingfacts.com/?p=1003</guid>
		<description><![CDATA[Many times developers are not aware with the core functions of PHP. PHP have sort and asort built in array functions. You may or may not be aware with these functions. But when you will face a PHP interview than you may be asked for this question.<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.programmingfacts.com/php-difference-sort-asort/' addthis:title='[PHP] What is the difference between sort &#038; asort in php ?' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_googlebuzz"></a><a class="addthis_button_digg"></a><a class="addthis_button_stumbleupon"></a><a class="addthis_button_delicious"></a><a class="addthis_button_myspace"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_reddit"></a></div>]]></description>
		<wfw:commentRss>http://www.programmingfacts.com/php-difference-sort-asort/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[PHP] Warning: Cannot modify header information when Create a COOKIE</title>
		<link>http://www.programmingfacts.com/php-warning-modify-header-information/</link>
		<comments>http://www.programmingfacts.com/php-warning-modify-header-information/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 10:44:30 +0000</pubDate>
		<dc:creator>Rakshit Patel</dc:creator>
				<category><![CDATA[Common Issues/Bugs]]></category>
		<category><![CDATA[setcookie not working]]></category>

		<guid isPermaLink="false">http://www.programmingfacts.com/?p=999</guid>
		<description><![CDATA[When you create COOKIE or try to set COOKIE, are you getting error like "Warning: Cannot modify header information - headers already sent" ? This happen if your page starts output on browser. COOKIE is at browser and it will not set if your browser has started output.<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.programmingfacts.com/php-warning-modify-header-information/' addthis:title='[PHP] Warning: Cannot modify header information when Create a COOKIE' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_googlebuzz"></a><a class="addthis_button_digg"></a><a class="addthis_button_stumbleupon"></a><a class="addthis_button_delicious"></a><a class="addthis_button_myspace"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_reddit"></a></div>]]></description>
		<wfw:commentRss>http://www.programmingfacts.com/php-warning-modify-header-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP] Parse/Extract Domain name from URL</title>
		<link>http://www.programmingfacts.com/php-parseextract-domain-url/</link>
		<comments>http://www.programmingfacts.com/php-parseextract-domain-url/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 10:37:28 +0000</pubDate>
		<dc:creator>Rakshit Patel</dc:creator>
				<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[Get Domain From Url]]></category>

		<guid isPermaLink="false">http://www.programmingfacts.com/?p=994</guid>
		<description><![CDATA[Do you need to parse only domain from current URL ? If yes than you are at the right place to get the PHP Code. PHP has parse_url built in function to parse a url parameters. This function will parse the url into an array. You can easily get the domain name from whole url of your page using parse_url function<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.programmingfacts.com/php-parseextract-domain-url/' addthis:title='[PHP] Parse/Extract Domain name from URL' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_googlebuzz"></a><a class="addthis_button_digg"></a><a class="addthis_button_stumbleupon"></a><a class="addthis_button_delicious"></a><a class="addthis_button_myspace"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_reddit"></a></div>]]></description>
		<wfw:commentRss>http://www.programmingfacts.com/php-parseextract-domain-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SMTP -&gt; ERROR: Failed to connect to server: Connection timed out (110)</title>
		<link>http://www.programmingfacts.com/smtp-error-failed-connect/</link>
		<comments>http://www.programmingfacts.com/smtp-error-failed-connect/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 08:45:18 +0000</pubDate>
		<dc:creator>Rakshit Patel</dc:creator>
				<category><![CDATA[Common Issues/Bugs]]></category>
		<category><![CDATA[SMTP Connection time out 110]]></category>

		<guid isPermaLink="false">http://www.programmingfacts.com/?p=931</guid>
		<description><![CDATA[SMTP -> ERROR: Failed to connect to server: Connection timed out (110). Connection time-out means the mail server cannot be reached anymore. If the mail server is different from your web server (i.e. not localhost) I had check with your hosting provider whether they enabled some sort of firewall that blocks connections on the SMTP port.<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.programmingfacts.com/smtp-error-failed-connect/' addthis:title='SMTP -> ERROR: Failed to connect to server: Connection timed out (110)' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_googlebuzz"></a><a class="addthis_button_digg"></a><a class="addthis_button_stumbleupon"></a><a class="addthis_button_delicious"></a><a class="addthis_button_myspace"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_reddit"></a></div>]]></description>
		<wfw:commentRss>http://www.programmingfacts.com/smtp-error-failed-connect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Write Array in txt file with PHP</title>
		<link>http://www.programmingfacts.com/write-array-in-txt-file-with-php/</link>
		<comments>http://www.programmingfacts.com/write-array-in-txt-file-with-php/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 12:36:17 +0000</pubDate>
		<dc:creator>Rakshit Patel</dc:creator>
				<category><![CDATA[Helpful Tips and Tricks]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[Writing Array fwrite text file php]]></category>

		<guid isPermaLink="false">http://www.programmingfacts.com/?p=834</guid>
		<description><![CDATA[Every programmer knows how to interact with file functions like fopen, fwrite, fread and fclose. Also most of us are aware with writing values in text file by using fwrite file handling function. Today i face a situation where i need to write array in text file using php as i am interacting with XML-RPC<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.programmingfacts.com/write-array-in-txt-file-with-php/' addthis:title='Write Array in txt file with PHP' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_googlebuzz"></a><a class="addthis_button_digg"></a><a class="addthis_button_stumbleupon"></a><a class="addthis_button_delicious"></a><a class="addthis_button_myspace"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_reddit"></a></div>]]></description>
		<wfw:commentRss>http://www.programmingfacts.com/write-array-in-txt-file-with-php/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Remove Empty/Null Rows from array using PHP</title>
		<link>http://www.programmingfacts.com/remove-emptynull-rows-from-array-using-php/</link>
		<comments>http://www.programmingfacts.com/remove-emptynull-rows-from-array-using-php/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 10:50:34 +0000</pubDate>
		<dc:creator>Rakshit Patel</dc:creator>
				<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[Remove null elements from array]]></category>

		<guid isPermaLink="false">http://www.programmingfacts.com/?p=813</guid>
		<description><![CDATA[I got so many empty element as well as null values in array and my SQL query is some what complex so i was not able to use IS NOT NULL in mysql Query. Only alternative way i have is removing this null values from array using PHP. I used is_null function of PHP and remove null elements from array.<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.programmingfacts.com/remove-emptynull-rows-from-array-using-php/' addthis:title='Remove Empty/Null Rows from array using PHP' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_googlebuzz"></a><a class="addthis_button_digg"></a><a class="addthis_button_stumbleupon"></a><a class="addthis_button_delicious"></a><a class="addthis_button_myspace"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_reddit"></a></div>]]></description>
		<wfw:commentRss>http://www.programmingfacts.com/remove-emptynull-rows-from-array-using-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP functions for Encrypt Decrypt a string</title>
		<link>http://www.programmingfacts.com/php-functions-for-encrypt-decrypt-a-string/</link>
		<comments>http://www.programmingfacts.com/php-functions-for-encrypt-decrypt-a-string/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 12:57:03 +0000</pubDate>
		<dc:creator>Rakshit Patel</dc:creator>
				<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[encryption decryption php functions]]></category>

		<guid isPermaLink="false">http://www.programmingfacts.com/?p=774</guid>
		<description><![CDATA[Here i am sharing php functions for encrypt decrypt a string. I came across two different ways of encrypt decrypt php functions for string. In first one, there are two functions for encrypt and decrypt string. One is for encrypt the string and other is for decrypt the encrypted string. In second one, there is only one encrypt decrypt function which works for both encryption and decryption of string in php.<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.programmingfacts.com/php-functions-for-encrypt-decrypt-a-string/' addthis:title='PHP functions for Encrypt Decrypt a string' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook"></a><a class="addthis_button_googlebuzz"></a><a class="addthis_button_digg"></a><a class="addthis_button_stumbleupon"></a><a class="addthis_button_delicious"></a><a class="addthis_button_myspace"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_reddit"></a></div>]]></description>
		<wfw:commentRss>http://www.programmingfacts.com/php-functions-for-encrypt-decrypt-a-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (User agent is rejected)
Database Caching 41/49 queries in 0.051 seconds using disk

Served from: www.programmingfacts.com @ 2012-02-08 00:36:53 -->
