<?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>PHP Programming Tips</title>
	<atom:link href="http://phpprogrammingtips.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpprogrammingtips.net</link>
	<description></description>
	<lastBuildDate>Fri, 19 Aug 2011 08:50:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Minimizing HTTP Requests to Speed up your Page (Part 2)</title>
		<link>http://phpprogrammingtips.net/information/minimizing-http-requests-to-speed-up-your-page-part-2/</link>
		<comments>http://phpprogrammingtips.net/information/minimizing-http-requests-to-speed-up-your-page-part-2/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 08:48:57 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Computers And Technology]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Internet And Businesses Online]]></category>
		<category><![CDATA[Related]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/?p=237</guid>
		<description><![CDATA[Continued form the previous post…. Inline images on the other hand embeds the image data directly onto the page itself eliminating the need for a separate function call. This has images directly encoded into the images combined with the program as it is compiled. This means no sizable images to pre-load into cache with them [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://t1.gstatic.com/images?q=tbn:ANd9GcRo1fW7MjOkkAIlPjw0rWxd_L5MAA-8fI44GD7grWFiAwlcbAs5" align=right alt="" />Continued form the previous post….<br />
<a href="http://www.phpprogramming101.com">Inline images</a> on the other hand embeds the image data directly onto the page itself eliminating the need for a separate function call. This has images directly encoded into the images combined with the program as it is compiled. This means no sizable images to pre-load into cache with them already loaded. Lastly, another method implemented by some of the top pages on the net combines many files into ones, having all scripts into one master script for access later. </p>
<p>These and other newly developed methods are revolutionizing the way we interact with the internet. Allowing faster page loads without much work and not too much technical needs and with the cloud going mainstream making the web experience shorter and enjoyable with less waiting of course.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/information/minimizing-http-requests-to-speed-up-your-page-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minimizing HTTP Requests to Speed up your Page (Part 1)</title>
		<link>http://phpprogrammingtips.net/information/minimizing-http-requests-to-speed-up-your-page-part-1/</link>
		<comments>http://phpprogrammingtips.net/information/minimizing-http-requests-to-speed-up-your-page-part-1/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 08:44:30 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Computers And Technology]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Internet And Businesses Online]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/?p=235</guid>
		<description><![CDATA[Statistics and studies show that as much as 80% of the end-user’s time is spent on the loading of the front page which is not only time consuming but taxing on resources as well. Using simple and widely used tools and methods, it would be possible to cut the overhead quite considerably such as using [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://t1.gstatic.com/images?q=tbn:ANd9GcRVNOguIjMIzRUJbUmUX7pC8C3gzsO652dylpcAVU-qSS7sBP4w" align=right alt="" />Statistics and studies show that as much as 80% of the end-user’s time is spent on the loading of the front page which is not only time consuming but taxing on resources as well. Using simple and widely used tools and methods, it would be possible to cut the overhead quite considerably such as using image maps for contiguous images such as in navigation bars. </p>
<p><a href="http://www.opensourcedailyjournal.com">CSS Sprites</a> is also a nifty way of reducing image display time, that combines all of the images onto one page using the CSS “background-image” and “background-position” function that tells at which coordinates the already loaded image for proper display.<br />
Continued on the next post…….</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/information/minimizing-http-requests-to-speed-up-your-page-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Deliver Content Fast</title>
		<link>http://phpprogrammingtips.net/information/how-to-deliver-content-fast/</link>
		<comments>http://phpprogrammingtips.net/information/how-to-deliver-content-fast/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 08:43:05 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Computers And Technology]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Internet And Businesses Online]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/?p=232</guid>
		<description><![CDATA[It used to be the norm of having all the information collated into one single server for ease of security and maintenance. With the internet and social media’s ever increasing reach, content delivery becomes a real issue and with the advent of cloud computing, loading times is all that matters. Geographical location plays an important [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://t0.gstatic.com/images?q=tbn:ANd9GcSc5gXnCdoh32QbwgmSNiBZfmJmvRILSKJSE5kv_9wumswNo3sO" align=right alt="" />It used to be the norm of having all the information collated into one single server for ease of security and maintenance. With the internet and social media’s ever increasing reach, content delivery becomes a real issue and with the advent of cloud computing, loading times is all that matters.</p>
<p>Geographical location plays an important factor when it comes to <a href="http://www.opensourcedailyguide.com">page load times</a> and content delivery and dispersing your content over a wide swath of geographically strategic locations allows for fast page loads. It also prevents overloading of a single server that can choke and seize up in the event of huge demand.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/information/how-to-deliver-content-fast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Source Social Page Authentication Made Easy</title>
		<link>http://phpprogrammingtips.net/information/open-source-social-page-authentication-made-easy/</link>
		<comments>http://phpprogrammingtips.net/information/open-source-social-page-authentication-made-easy/#comments</comments>
		<pubDate>Sat, 19 Feb 2011 08:41:43 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Computers And Technology]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Internet And Businesses Online]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/?p=229</guid>
		<description><![CDATA[Using a little known library that has been uploaded through the community, HybridAuth contains access verification capabilities for social networking sites that are on the internet today. Developers are always on the lookout for the best and most robust ways of protecting people who do want to get into social networking sites through blogs and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://t1.gstatic.com/images?q=tbn:ANd9GcSqlGK5FYlc60YWLcp-TqDl_P4R356wyLCOrFqjL5Up7Oc7KE09Mg" align=right alt="" />Using a little known library that has been uploaded through the community, HybridAuth contains access verification capabilities for social networking sites that are on the internet today. Developers are always on the lookout for the best and most robust ways of protecting people who do want to get into <a href="http://www.latestfreewarereview.com">social networking</a> sites through blogs and many others the solution being a blessing for those who want to gain access to OpenID, LinkedIn, Foursquare, Yahoo and Tumblr.<br />
More information can be found on the SourceForge project page where tons of other nifty additions to your page can be found and used almost for free.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/information/open-source-social-page-authentication-made-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cookies &#8211; not the one you dunk in milk</title>
		<link>http://phpprogrammingtips.net/basic-programming/cookies-not-the-one-you-dunk-in-milk/</link>
		<comments>http://phpprogrammingtips.net/basic-programming/cookies-not-the-one-you-dunk-in-milk/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 10:36:15 +0000</pubDate>
		<dc:creator>Avatar</dc:creator>
				<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[bits of information]]></category>
		<category><![CDATA[cookies]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/basic-programming/cookies-not-the-one-you-dunk-in-milk/</guid>
		<description><![CDATA[If you have been browsing the web foir quite sometime, then you might have come across cookies which allows your browser to remember passwords and other information that may have anything to do with your actions on a particular website. These can be preferences that would allow the browser or webpage on the browser to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ilovemilkandcookies.blogspot.com/2006/07/dipping-etiquette.html"><img src="/wp-content/uploads/scraped/35.jpg"/></a>
<p>If you have been browsing the web foir quite sometime, then you might have come across cookies which allows your browser to remember passwords and other information that may have anything to do with your actions on a particular website. These can be preferences that would allow the browser or webpage on the browser to determine your habits online allowing it to perform the requested operations faster and easier. A cookie is called a client-based information for it is stored on the client computer (yours when you browse the web) and is taken or stored intact along with all the information it contains for a specified amount of time or till you delete your browsing history and cookies. If you have come across tracking cookies, these are information that defines you to a particular web page which is called upon on your next visit. When creating cookies with your page, there are specific parameters (cookies by the way are created using user-made code in PHP) that must be remembered so as not to fill up the hard disks of your client computers as they visit your website page again and again. The function setcookie is used with the following syntax:</p>
<p>setcookie(var1, var2, time)</p>
<p>The var 1 stands for the name of the cookie you are creating, with the var 2 containing the value of the said cookie and the last parameter is the time which specifies the amount of time it takes for the function to kill (terminate/delete) the cookie. A more defined and elaborate explanation of the function can be found on this &lt;a href=&#8221;http://www.php.net/manual/en/function.setcookie.php&#8221;&gt;page&lt;/aq&gt;.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/basic-programming/cookies-not-the-one-you-dunk-in-milk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; Single vs. Double Quotes (Part 1)</title>
		<link>http://phpprogrammingtips.net/basic-programming/php-single-vs-double-quotes-part-1/</link>
		<comments>http://phpprogrammingtips.net/basic-programming/php-single-vs-double-quotes-part-1/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 10:30:00 +0000</pubDate>
		<dc:creator>Avatar</dc:creator>
				<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[Quotes]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/basic-programming/php-single-vs-double-quotes-part-1/</guid>
		<description><![CDATA[PHP may be an easy language to use and learn but there are simple steps most budding programmers forget when it comes to coding in the scripting language of choice for web pages. The quotes, which come in single and double forms. They may seem inter-changeable but they have two distinct uses; the double quote [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://latex.knobs-dials.com/"><img src="/wp-content/uploads/scraped/28.jpg"/></a>
<p>PHP may be an easy language to use and learn but there are simple steps most budding programmers forget when it comes to coding in the scripting language of choice for web pages. The quotes, which come in single and double forms. They may seem inter-changeable but they have two distinct uses; the double quote is used for variables and coding without proper knowledge of this wastes computing time for PHP is forced to look for a non-existent variable wasting precious computing time thus resulting in longer processing.</p>
<p>Example:<br />
$myword = &#8220;PHP is Free&#8221;;<br />
if ($myword == &#8220;PHP is Free&#8221;)<br />
{<br />
echo &#8220;Learn it Easy&#8221;;}</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/basic-programming/php-single-vs-double-quotes-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Programming.</title>
		<link>http://phpprogrammingtips.net/basic-programming/php-programming/</link>
		<comments>http://phpprogrammingtips.net/basic-programming/php-programming/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 11:19:57 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Basic Programming]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/basic-programming/php-programming/</guid>
		<description><![CDATA[PHP is free! (Most Web hosts provide PHP in even their most basic plans). PHP or the PHP Hypertext Pre-processor is a server-side programming language that gives Web developers it has the ability to build virtually any type of application, from simple contact forms to shopping carts, dynamic job sites, and complex content management systems.]]></description>
			<content:encoded><![CDATA[<p><a href="http://dasna.blogspot.com/2008/01/php-programming-solutions.html"><img src="/wp-content/uploads/scraped/27.jpg"/></a>
<p>PHP is free! (Most Web hosts provide PHP in even their most basic plans). PHP or the PHP Hypertext Pre-processor is a server-side programming language that gives Web developers it has the ability to build virtually any type of application, from simple contact forms to shopping carts, dynamic job sites, and complex content management systems.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/basic-programming/php-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tips in safe Mode</title>
		<link>http://phpprogrammingtips.net/basic-programming/tips-in-safe-mode/</link>
		<comments>http://phpprogrammingtips.net/basic-programming/tips-in-safe-mode/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 10:16:13 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Basic Programming]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/basic-programming/tips-in-safe-mode/</guid>
		<description><![CDATA[Apache module is a PHP installed Apache configuration files (.httpd) and .htaccess files help its settings to be changed. It also enable or disable PHP safe mode for the entire web server you can use the php.ini file and also allows the file to modify many aspects of PHP configuration.]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.ocls.info/SouthWest/2007/08/computer_tips_and_tricks_admin.html"><img src="/wp-content/uploads/scraped/24.jpg"/></a>
<p>Apache module is a PHP installed Apache configuration files (.httpd) and .htaccess files help its settings to be changed. It also enable or disable PHP safe mode for the entire web server you can use the php.ini file and also allows the file to modify many aspects of PHP configuration.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/basic-programming/tips-in-safe-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Array_diff_uassoc Function</title>
		<link>http://phpprogrammingtips.net/basic-programming/array_diff_uassoc-function/</link>
		<comments>http://phpprogrammingtips.net/basic-programming/array_diff_uassoc-function/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 18:17:35 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[php array_diff functions]]></category>
		<category><![CDATA[php basics]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/uncategorized/array_diff_uassoc-function/</guid>
		<description><![CDATA[Next in line is array_diff_uassoc() function which compares two or more arrays while checking for differences before comparing the keys with a user-defined location. It then returns an array withthe keys and values from the first array(to which all the values were comapred against) it the function allows it. Syntax is as follows : array_diff_uassoc(array1,array2,array3&#8230;.,function). [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mindphp.com/modules.php%3Fname%3DPHP_Manual%26page%3Dfunction.array-diff-uassoc.html"><img src="/wp-content/uploads/scraped/23.jpg"/></a>
<p>Next in line is array_diff_uassoc() function which compares two or more arrays while checking for differences before comparing the keys with a user-defined location. It then returns an array withthe keys and values from the first array(to which all the values were comapred against) it the function allows it. Syntax is as follows : array_diff_uassoc(array1,array2,array3&#8230;.,function). with a sample below of how it is used.</p>
<p><?php<br />
function userdefined($v1,$v2)<br />
{<br />
if ($v1 === $v2)<br />
	{<br />
	return 0;<br />
	}<br />
if ($v1 > $v2)<br />
	{<br />
	return 1;<br />
	}<br />
else<br />
	{<br />
	return -1;<br />
	}<br />
}<br />
$a1=array(0=>&#8221;Dog&#8221;,1=>&#8221;Cat&#8221;,2=>&#8221;Horse&#8221;)<br />
$a2=array(3=>&#8221;Dog&#8221;,1=>&#8221;Cat&#8221;,5=>&#8221;Horse&#8221;)<br />
print_r(array_diff_uassoc($a1,$a2,&#8221;userdefined&#8221;));<br />
?></p>
<p>which results in the following output : Array( [0] => Dog [2] => Horse). For an example of the same function with two or more assigned arrays to the function:</p>
<p><?php<br />
function userdefined($v1,$v2)<br />
{<br />
if ($v1 === $v2)<br />
	{<br />
	return 0;<br />
	}<br />
if ($v1 > $v2)<br />
	{<br />
	return 1;<br />
	}<br />
else<br />
	{<br />
	return -1;<br />
	}<br />
}<br />
$a1=array(0=>&#8221;Dog&#8221;,1=>&#8221;Cat&#8221;,2=>&#8221;Horse&#8221;)<br />
$a2=array(3=>&#8221;Dog&#8221;,1=>&#8221;Cat&#8221;,5=>&#8221;Horse&#8221;)<br />
$a3=array(6=>&#8221;Onyx&#8221;,0=>&#8221;Dog&#8221;,5=>&#8221;Horse&#8221;)<br />
print_r(array_diff_uassoc($a1,$a2,$a3,&#8221;userdefined&#8221;));<br />
?></p>
<p>Which in turn, gives you : Array ([2] => Horse )</p>
<p>So we see the different array_diff function variants and the diffeerent ways they are used to compare the values of one or more arrays with one another.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/basic-programming/array_diff_uassoc-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Array_diff Function</title>
		<link>http://phpprogrammingtips.net/basic-programming/array_diff-function/</link>
		<comments>http://phpprogrammingtips.net/basic-programming/array_diff-function/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 18:13:34 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Basic Programming]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[array_diff()]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[php array handling]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/uncategorized/array_diff-function/</guid>
		<description><![CDATA[The first function, array_diff() is used for comparing several tables or arrays which gives an array with the keys and values from the first array if the value is not available in the other arrays. Syntax is as follows : array_diff(array1,array2,array3&#8230;&#8230;), where array 1 is the table to which all the other arrays will be [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.martydooginarts.com/"><img src="/wp-content/uploads/scraped/21.jpg"/></a>
<p>The first function, <strong>array_diff()</strong> is used for comparing several tables or arrays which gives an array with the keys and values from the first array if the value is not available in the other arrays. Syntax is as follows : array_diff(array1,array2,array3&#8230;&#8230;), where array 1 is the table to which all the other arrays will be compared to. The 2nd array(array 2) is an array that is compared with the first array and so on and so forth. Below is sample code of its use and the outcome of the functions comparison :</p>
<p><?php<br />
$a1=array(0=>&#8220;Mouse&#8221;,1=>&#8221;Cat&#8221;,2=>&#8221;Dog&#8221;);<br />
$a2=array(3=>&#8221;Dog&#8221;,4=>&#8221;Cat&#8221;,5=>&#8221;Lizard&#8221;);<br />
print_r(array_diff($a1,$a2));<br />
?></p>
<p>Giving you the result : Array( [0] =>Mouse )</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/basic-programming/array_diff-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

