<?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"
	>

<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>
	<pubDate>Mon, 05 Jan 2009 14:14:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Get Your Tools</title>
		<link>http://phpprogrammingtips.net/basic-programming/get-your-tools/</link>
		<comments>http://phpprogrammingtips.net/basic-programming/get-your-tools/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 04:17:26 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
		
		<category><![CDATA[Basic Programming]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/?p=72</guid>
		<description><![CDATA[
 Image Source: moonsdesigns.com      
Before you can start with your PHP programming, you will surely need some few things handy. To be able to create a PHP page, you will need to have a simple text editor. A text editor is a small program that enables you to edit files [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://moonsdesigns.com/tutorials/psp8/scripts/text%20editor.jpg" alt="" /></p>
<p><em> Image Source: moonsdesigns.com      </em></p>
<p>Before you can start with your PHP programming, you will surely need some few things handy. To be able to create a <a href="http://basicphpprogramming.com">PHP page</a>, you will need to have a simple text editor. A text editor is a small program that enables you to edit files in plain text.  Usually these files are those that have extensions like .php, .html, .cgi and many others. This is an essential tool because your file , when saved should not be formatted, it should be saved in plain text. Notepad is a simple text editor that works only on Windows and Text Edit is another plain text editor that solely works on Mac OS.  Next thing you should have is an FTP. This will be used to transfer files to and fro to a remote server. When you already got them, you can now start creating your PHP pages. </p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/basic-programming/get-your-tools/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Write secured PHP</title>
		<link>http://phpprogrammingtips.net/advanced-programming/write-secured-php/</link>
		<comments>http://phpprogrammingtips.net/advanced-programming/write-secured-php/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 18:03:10 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
		
		<category><![CDATA[Advanced Programming]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/?p=69</guid>
		<description><![CDATA[
 Image Source:sitepointstatic.com           
PHP programming was written to be an easy language to program. Completely opposite to being very security oriented. It was so until the 4.1 version. Undeniably, Php has  grown  to be popular in the short term. But  it also [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://sitepointstatic.com/graphics/phpniteclub2.jpg" alt="" /></p>
<p><em> Image Source:sitepointstatic.com       </em>    </p>
<p>PHP programming was written to be an easy language to program. Completely opposite to being very security oriented. It was so until the 4.1 version. Undeniably, Php has  grown  to be popular in the short term. But  it also created many, many,  very badly written<a href="http://easyrubyonrailsprogramming.com"> scripts</a>. And it gave a very big number of programmers a mindset which is not inclined to the security aspect of programming. Maybe, the main reason behind it, is the automation of conversion by PHP of inputted data to script variables using or enabling though php.ini setting register globals. In the 4.1 version of PHP, this type of behavior was left enabled but was not recommended to be used. With PHP 4.2, this type of behaviour was disabled by default. It broke thousands and thousands of scripts worldwide. This dilemma led to forcing the coders to write more secure codes. They made scripts break. This was opposed stongly before but somehow they saw that the move was a smart one.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/advanced-programming/write-secured-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flow Control and Iteration</title>
		<link>http://phpprogrammingtips.net/information/flow-control-and-iteration/</link>
		<comments>http://phpprogrammingtips.net/information/flow-control-and-iteration/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 20:51:08 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
		
		<category><![CDATA[Information]]></category>

		<category><![CDATA[flow control]]></category>

		<category><![CDATA[iteration]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/?p=37</guid>
		<description><![CDATA[
 Image Source:theopensourcery.com            
Flow control and iteration are two useful features in most programming languages. Without them, programs would be linear.Flow control means exactly what it sounds like. Control the flow. When using flow control, you are regulating the order in which the code [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://theopensourcery.com/images/phpeachfig1.gif" alt="" /><br />
<em> Image Source:theopensourcery.com       </em>     </p>
<p>Flow control and iteration are two useful features in most <a href="http://webinnovationsblog.com">programming languages</a>. Without them, programs would be linear.Flow control means exactly what it sounds like. Control the flow. When using flow control, you are regulating the order in which the code is executed, the number of times it is to be executed or if it is executed at all. Flow control can be classified into three primary categories.</p>
<ul>
<li>Conditionals - specifies whether or not to run a selected piece of code based on some conditions. </li>
<li>Iteration - also known as looping, it specifies that a piece of code be run a number of  times. </li>
<li>Functions -  allows you to create named blocks of code to be called by name in the script. This  runs a piece of code multiple times from multiple places in the script.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/information/flow-control-and-iteration/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Looping Statements Doesn&#8217;t loop?</title>
		<link>http://phpprogrammingtips.net/information/looping-statements-doesnt-loop/</link>
		<comments>http://phpprogrammingtips.net/information/looping-statements-doesnt-loop/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 13:30:55 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
		
		<category><![CDATA[Advanced Programming]]></category>

		<category><![CDATA[Basic Programming]]></category>

		<category><![CDATA[Information]]></category>

		<category><![CDATA[Sample Code]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/?p=39</guid>
		<description><![CDATA[
Image Source: www.pragprog.com
Did you know that looping statements doesn’t loop the whole if-else statement if you put an if-else statement in the looping statement? That’s right. Looping statements only goes through the if-else statements once. Once the looping statement activates the statements inside the if-else statement, the looping statement will only loop the statement inside [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://phpprogrammingtips.net/wp-content/uploads/2008/10/ca83mb03.jpg"><img src="http://phpprogrammingtips.net/wp-content/uploads/2008/10/ca83mb03.jpg" alt="" title="ca83mb03" width="114" height="137" class="alignnone size-medium wp-image-40" /></a><br />
Image Source: www.pragprog.com<br />
Did you know that <a href="http://phpprogrammingtips.com">looping statements </a>doesn’t loop the whole if-else statement if you put an if-else statement in the looping statement? That’s right. Looping statements only goes through the if-else statements once. Once the looping statement activates the statements inside the if-else statement, the looping statement will only loop the statement inside the if-else statement. That is why it is not recommendable to use if-else statement inside a looping statement, such as do-while statements, while statements, and for statements. The only thing I recommend for you to use a switch statement. Looping statements reads the whole switch statement, possibly because switch statements requires a specific value for a condition. I don’t really know, but it works. Don’t worry. Switch statement also has a “Default” statement inside it that works just like the “else” statement in the if-else statement. The only disadvantage is that you won’t be able to set comparisons like greater than (») or less than («).</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/information/looping-statements-doesnt-loop/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Arrays</title>
		<link>http://phpprogrammingtips.net/basic-programming/arrays/</link>
		<comments>http://phpprogrammingtips.net/basic-programming/arrays/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 11:13:00 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
		
		<category><![CDATA[Basic Programming]]></category>

		<category><![CDATA[Sample Code]]></category>

		<category><![CDATA[Array Functions]]></category>

		<category><![CDATA[PHP Programming]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/uncategorized/arrays/</guid>
		<description><![CDATA[
Arrays are what tables are to C-based programming languages and what databases are for SQL-based languages. Arrays or tables as they are sometimes called can be used to store the contents of several variables and to create one, you use the following syntax:
Array(key=>value)
The array in the syntax refers to the name of the array being [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://webster.cs.ucr.edu/AoA/Windows/HTML/Arraysa2.html"><img src="/wp-content/uploads/scraped/16.jpg"/></a>
<p>Arrays are what tables are to C-based programming languages and what databases are for SQL-based languages. Arrays or tables as they are sometimes called can be used to store the contents of several variables and to create one, you use the following syntax:</p>
<p>Array(key=>value)</p>
<p>The array in the syntax refers to the name of the array being created, the key is the index which is set automatically to a numeric character or string if none is specified. Value is the assigned value or content of the said array which can be seen easily in the following array creation example:</p>
<p><?php<br />
$b=array('z'=>&#8216;Comedy&#8221;,&#8217;y'=>&#8221;Horror&#8221;,&#8217;x;&#8217;=>&#8221;Action&#8221;);<br />
print_r($b);<br />
?></p>
<p>This piece of code would produce an output of :</p>
<p>Array ([0] => Comedy [1] => Horror [2] => Action)</p>
<p>More on array functions in the next posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/basic-programming/arrays/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Getting Started with PHP Programming</title>
		<link>http://phpprogrammingtips.net/basic-programming/getting-started-with-php-programming/</link>
		<comments>http://phpprogrammingtips.net/basic-programming/getting-started-with-php-programming/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 14:31:43 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
		
		<category><![CDATA[Basic Programming]]></category>

		<category><![CDATA[Basic PHP]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Programming Concepts]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/uncategorized/getting-started-with-php-programming/</guid>
		<description><![CDATA[
The first step to get us on our way to programming in PHP would be to set up an ideal development environment. You need a Web Server software like Apache (which would be what we are going to use) which is only one of many out there. Most of these web servers are open-source meaning [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wso2.org/library/3032"><img src="/wp-content/uploads/scraped/9.jpg"/></a>
<p>The first step to get us on our way to programming in PHP would be to set up an ideal development environment. You need a <strong><a href="http://en.wikipedia.org/wiki/Comparison_of_web_servers">Web Server</a></strong> software like Apache (which would be what we are going to use) which is only one of many out there. Most of these web servers are open-source meaning that they are free. Now, being free doesn�t mean that they are not up to standards for there are standards that are set by independent groups that are comprised of the many developers who together formulate or give a loosely defined set of standards for others to follow. Apache has versions for Linux but there are also for the Windows, Unix and Mac OS. The <strong><a href="http://www.php.net/manual/en/installation.php">installer</a></strong> can be downloaded along with the detailed <strong><a href="http://www.php.net/">manual</a></strong> from PHP.net</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/basic-programming/getting-started-with-php-programming/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Cookies - 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>Thu, 29 May 2008 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>
		</item>
		<item>
		<title>Templates and ready made Apps on the Web (Part 2)</title>
		<link>http://phpprogrammingtips.net/basic-programming/templates-and-ready-made-apps-on-the-web-part-2/</link>
		<comments>http://phpprogrammingtips.net/basic-programming/templates-and-ready-made-apps-on-the-web-part-2/#comments</comments>
		<pubDate>Sun, 25 May 2008 10:35:19 +0000</pubDate>
		<dc:creator>Avatar</dc:creator>
		
		<category><![CDATA[Basic Programming]]></category>

		<category><![CDATA[Sample Code]]></category>

		<category><![CDATA[Free templates]]></category>

		<category><![CDATA[PHP Help Sites]]></category>

		<category><![CDATA[sample templates]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/basic-programming/templates-and-ready-made-apps-on-the-web-part-2/</guid>
		<description><![CDATA[
There are a lot of programmers who share code and sample applications which you can use for free (provided you clear it up first) but for budding programmers, they&#8217;re all there for the taking. Sites like &#60;a href=&#8221;http://websitetips.com/php/&#8221;&#62;websitetips.com&#60;/a&#62;, &#60;a href=&#8221;http://www.smartwebby.com/PHP/default.asp&#8221;&#62;Smartwebby.com&#60;/a&#62; and many other blogs and help sites allows access to tips from programmers like you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/bb530302.aspx"><img src="/wp-content/uploads/scraped/34.jpg"/></a>
<p>There are a lot of programmers who share code and sample applications which you can use for free (provided you clear it up first) but for budding programmers, they&#8217;re all there for the taking. Sites like &lt;a href=&#8221;http://websitetips.com/php/&#8221;&gt;websitetips.com&lt;/a&gt;, &lt;a href=&#8221;http://www.smartwebby.com/PHP/default.asp&#8221;&gt;Smartwebby.com&lt;/a&gt; and many other blogs and help sites allows access to tips from programmers like you making it a pleasant experience altogether. Can’t find a question, post questions to the many forums and you&#8217;ll get help from others in no time, you might even get help from the guru&#8217;s themselves who made the phenomenon that is PHP possible for all of us to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/basic-programming/templates-and-ready-made-apps-on-the-web-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Templates and ready made Apps on the Web (Part 1)</title>
		<link>http://phpprogrammingtips.net/basic-programming/templates-and-ready-made-apps-on-the-web-part-1/</link>
		<comments>http://phpprogrammingtips.net/basic-programming/templates-and-ready-made-apps-on-the-web-part-1/#comments</comments>
		<pubDate>Wed, 21 May 2008 10:34:25 +0000</pubDate>
		<dc:creator>Avatar</dc:creator>
		
		<category><![CDATA[Basic Programming]]></category>

		<category><![CDATA[Sample Code]]></category>

		<category><![CDATA[Online references]]></category>

		<category><![CDATA[PHP Help]]></category>

		<category><![CDATA[Templates]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/basic-programming/templates-and-ready-made-apps-on-the-web-part-1/</guid>
		<description><![CDATA[
Thanks to the basic foundation on which PHP is founded on, the language being free of all legalities and other stuff that makes deployment of other languages on the many platforms quite expensive. But the many people who makeup the PHP community are not ones who keep knowledge to themselves for there are tons of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/ms964439.aspx"><img src="/wp-content/uploads/scraped/33.jpg"/></a>
<p>Thanks to the basic foundation on which PHP is founded on, the language being free of all legalities and other stuff that makes deployment of other languages on the many platforms quite expensive. But the many people who makeup the PHP community are not ones who keep knowledge to themselves for there are tons of free pre-made templates for applications and processes on the web available for programmers from all skill levels. They make it fun and easy to learn the language in no time and the community fosters growth to all of those who benefit from the use of PHP. Search online for help and you will surely get it in the form of forums and other helpful articles.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/basic-programming/templates-and-ready-made-apps-on-the-web-part-1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Further shortening of your code (Part 2)</title>
		<link>http://phpprogrammingtips.net/basic-programming/further-shortening-of-your-code-part-2/</link>
		<comments>http://phpprogrammingtips.net/basic-programming/further-shortening-of-your-code-part-2/#comments</comments>
		<pubDate>Sat, 17 May 2008 10:33:11 +0000</pubDate>
		<dc:creator>Avatar</dc:creator>
		
		<category><![CDATA[Basic Programming]]></category>

		<category><![CDATA[Sample Code]]></category>

		<category><![CDATA[Shortening php Code]]></category>

		<guid isPermaLink="false">http://phpprogrammingtips.net/basic-programming/further-shortening-of-your-code-part-2/</guid>
		<description><![CDATA[
As stated in the previous entry, shortening or simplifying your source code makes it easier and better when you need to find bugs and a good example of this would be :
Example :
if ($Mickey == true) echo &#8216;Welcome to the Mickey Mouse Club House&#8217;;
elseif ($MainCharacter == false) echo &#8216;Hi Barney!&#8217;;
Making things a bit simpler, say [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.oracle.com/xmlpublisher/templates/templates_rtf/"><img src="/wp-content/uploads/scraped/32.jpg"/></a>
<p>As stated in the previous entry, shortening or simplifying your source code makes it easier and better when you need to find bugs and a good example of this would be :</p>
<p>Example :<br />
if ($Mickey == true) echo &#8216;Welcome to the Mickey Mouse Club House&#8217;;<br />
elseif ($MainCharacter == false) echo &#8216;Hi Barney!&#8217;;</p>
<p>Making things a bit simpler, say by taking away the &#8216;==&#8217; and &#8216;!=&#8217; gives you;</p>
<p>if ($Mickey) echo &#8216;Welcome to the Mickey Mouse Club House.&#8217;;<br />
elseif (!$MainCharacter) echo &#8216;Hi Barney!&#8217;;</p>
<p>Simplifying code should be the aim of each and every programmer (who&#8217;s head aches when you get some bugs you got to fix) so you get to code less and better than the other guy. Remember, we&#8217;re all on the same plane using the same free language so we should be helping others for the better.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpprogrammingtips.net/basic-programming/further-shortening-of-your-code-part-2/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
