<?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>PHPDone</title>
	<atom:link href="http://www.phpdone.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpdone.com/blog</link>
	<description>Teach Yourself PHP</description>
	<lastBuildDate>Thu, 08 Apr 2010 09:10:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Learn PHP variables, variable scope, Global variables, this variable</title>
		<link>http://www.phpdone.com/blog/2010/04/learn-php-variables-variable-scope-global-variables-this-variable/</link>
		<comments>http://www.phpdone.com/blog/2010/04/learn-php-variables-variable-scope-global-variables-this-variable/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 08:01:01 +0000</pubDate>
		<dc:creator>farooqmalik682</dc:creator>
				<category><![CDATA[Misc.]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=138</guid>
		<description><![CDATA[PHP Variables:
Variables are used for storing  values.Variables in PHP start with a $ (dollar sign). They can be used to  store numbers,  										strings or arrays. Once the variable is set, it can be used  multiple times.PHP manages it automatically if you not specify variable data type.
Variables in PHP are case sensitive [...]]]></description>
			<content:encoded><![CDATA[<h4 id="variables"><span style="color: #000080"><strong><em>PHP Variables:</em></strong></span></h4>
<p>Variables are used for storing  values.Variables in PHP start with a $ (dollar sign). They can be used to  store numbers,  										strings or arrays. Once the variable is set, it can be used  multiple times.PHP manages it automatically if you not specify variable data type.</p>
<p>Variables in PHP are case sensitive and by default are  assigned by value.  Variable initialization is not mandatory.</p>
<p>PHP also has some  predefined  										variables. Different categories of variables include:</p>
<p><span style="color: #008000">$GLOBAL: References all variables available in global scope</span></p>
<p><span style="color: #008000">$_GET — HTTP GET variables</span></p>
<p><span style="color: #008000">$_POST — HTTP POST variables</span></p>
<p><span style="color: #008000">$_SESSION — Session variables</span></p>
<p><span style="color: #008000">$_REQUEST — HTTP Request variables</span></p>
<p>The above variables are also called super variables, as they have global scope; the scope will b define in below paragraph lines.</p>
<p>Example:</p>
<p><span style="color: #993300">&lt;?php</span></p>
<p><span style="color: #993300">$sample =”Sample text”;</span></p>
<p><span style="color: #993300">&lt;?</span></p>
<h4 id="register"><span style="color: #000080"><strong><em>Registration of Variables into Session:</em></strong></span></h4>
<p>By using the  session_register() function, global variables in PHP can be registered. This function accepts different number of arguments, (  either variable that has  string or an array consisting of  variable names or  										other arrays).</p>
<p><span style="color: #ff0000">Example:</span><br />
<span style="color: #993300">Session_register(“smple”);</span></p>
<p><span style="color: #993300">$_session can also be used for registering variables.</span></p>
<p><span style="color: #993300">Example:<br />
$_SESSION['count'] = 0;</span></p>
<h4 id="variablescope"><span style="color: #000080">Variable Scope in Functions in PHP:</span></h4>
<p>The scope of a variable is determined based on the context  in which is defined.  										i.e. local or global. In PHP global variables must be declared  global inside a  										function if they are going to be used in that function.</p>
<p>Example: The script below will not produce any result  because “x” ‘s scope is  										outside the function. If the variable is declared as global,  it can be used  										from anywhere in the script.</p>
<p><span style="color: #993300">&lt;?php<br />
$x = 10; //global<br />
Function sample()<br />
{<br />
Echo $x;<br />
}<br />
Test();<br />
?&gt;</span></p>
<h4 id="SERVER"><span style="color: #000080">Describe $_ENV and $_SERVER:</span></h4>
<ul>
<li> $_ENV is the array under Superglobal variables. They are he  environment  											variables. These variables are imported into PHP’s global  namespace from the  											environment of PHP parser.<br />
<span style="color: #993300">Example:<br />
&lt;?php<br />
Echo ‘my user name is ‘  											.$_ENV[“USER”] ‘!’;<br />
?&gt;</span>Output:<br />
My user name is sample !</li>
<li> $_SERVER is the array under Superglobal variables. They are  array containing  											information about headers, paths and script locations. Web  server creates  											entries of this array.<br />
<span style="color: #993300">Example:<br />
&lt;?php<br />
Echo $_SERVER [‘SERVER_NAME’];<br />
?&gt;</span></li>
</ul>
<h4 id="this"><span style="color: #000080"> About  &#8220;this&#8221;  Variable:</span></h4>
<p>In order to specify that you are working with local  variables within a function  										$this variable is used. Inside a function of an object, PHP  automatically sets  										the $this variable contains that object – we need not to do  anything to have  										access to it.</p>
<p><span style="color: #993300">Example:</span></p>
<p><span style="color: #993300">Function person()<br />
{<br />
Print “{$this-&gt;age}”;<br />
}</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2010/04/learn-php-variables-variable-scope-global-variables-this-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Advantages, PHP Benifits</title>
		<link>http://www.phpdone.com/blog/2010/04/php-advantages-php-benifits/</link>
		<comments>http://www.phpdone.com/blog/2010/04/php-advantages-php-benifits/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 07:25:08 +0000</pubDate>
		<dc:creator>farooqmalik682</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Web Designs]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=135</guid>
		<description><![CDATA[PHP advantages

PHP is offering a variety of security mechanisms.
 it is a better  choice of                modular programming as it has easy connectivity abilities.
PHP has ability to  easily be interfaced with a variety of  libraries,      [...]]]></description>
			<content:encoded><![CDATA[<h4 id="advantages"><span style="color: #0000ff"><strong><em>PHP advantages</em></strong></span></h4>
<ul>
<li>PHP is offering a variety of security mechanisms.</li>
<li> it is a better  choice of                modular programming as it has easy connectivity abilities.</li>
<li>PHP has ability to  easily be interfaced with a variety of  libraries,                xml’s.</li>
<li>Open source software makes it best attractive choice for every one.</li>
<li>Easy to  remember the                syntax,  syntax is like to C and C++.</li>
<li>Easily can create,manage  dynamic web pages with PHP.</li>
<li>PHP People Community, a good place where people can make  their                scripts and post relating to the requirement.</li>
</ul>
<h4 id="Java"><span style="color: #008000">PHP Advantage over Java:</span></h4>
<ul>
<li>PHP: easy and simple language built  for web                applications</li>
<li>PHP: open source and  customization  becomes convenient.</li>
<li>PHP: easily integrates with variety of  database, both open-source (MySQL, PostgreSQL, SQLite) and                commercial (Oracle, MS SQL Server); while Java relies on  JDBC                drivers for database connectivity.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2010/04/php-advantages-php-benifits/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>50 Free High Quality Web Templates</title>
		<link>http://www.phpdone.com/blog/2010/03/50-free-high-quality-web-templates/</link>
		<comments>http://www.phpdone.com/blog/2010/03/50-free-high-quality-web-templates/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 07:13:34 +0000</pubDate>
		<dc:creator>Waqas Hasan</dc:creator>
				<category><![CDATA[CSS & HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=126</guid>
		<description><![CDATA[http://www.noupe.com/css/50-free-high-quality-and-new-xhtmlcss-templates.html
]]></description>
			<content:encoded><![CDATA[<p>http://www.noupe.com/css/50-free-high-quality-and-new-xhtmlcss-templates.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2010/03/50-free-high-quality-web-templates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Guess Gender ;-)</title>
		<link>http://www.phpdone.com/blog/2009/11/guess-gender/</link>
		<comments>http://www.phpdone.com/blog/2009/11/guess-gender/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 09:26:38 +0000</pubDate>
		<dc:creator>Dr. Perl</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Arrays]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Variables]]></category>
		<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=124</guid>
		<description><![CDATA[Just a simple function to demonstrate the use of a few very simple but useful functions of PHP. This function simply accepts a parameter ($relation) and returns the &#8220;Gender (sex)&#8221; of the relationship.
Here&#8217;s the function:
&#60;?php
function guessGender($relation)
{
 $gen = "";
 $relation = ucwords(strtolower($relation));
 $relations = array(
      "Male" =&#62; array("Husband", "Son", "Father", "Brother"),
      "Female" =&#62; array("Wife", "Daughter", [...]]]></description>
			<content:encoded><![CDATA[<p>Just a simple function to demonstrate the use of a few very simple but useful functions of PHP. This function simply accepts a parameter ($relation) and returns the &#8220;Gender (sex)&#8221; of the relationship.</p>
<p>Here&#8217;s the function:</p>
<pre class="brush:php">&lt;?php
function guessGender($relation)
{
 $gen = "";
 $relation = ucwords(strtolower($relation));
 $relations = array(
      "Male" =&gt; array("Husband", "Son", "Father", "Brother"),
      "Female" =&gt; array("Wife", "Daughter", "Mother", "Sister")
 );

 foreach($relations as $gender =&gt; $relationType){
      if(in_array($relation, $relationType)){
           $gen = $gender;
      }
 }

 return $gen;
}
?&gt;</pre>
<p>For the ease of your understanding, I have linked each PHP function, language construct and other statements to Official PHP manual. Simply click on the provided links (in above code) to see the detailed information on each.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2009/11/guess-gender/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Problem and Solution!</title>
		<link>http://www.phpdone.com/blog/2009/11/problem-and-solution/</link>
		<comments>http://www.phpdone.com/blog/2009/11/problem-and-solution/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 17:48:10 +0000</pubDate>
		<dc:creator>asim</dc:creator>
				<category><![CDATA[Misc.]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=121</guid>
		<description><![CDATA[I found an interesting problem on net and as a noivce decided to solve it all by self with the help of PHP.
Problem:&#8221;If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of [...]]]></description>
			<content:encoded><![CDATA[<p>I found an interesting problem on net and as a noivce decided to solve it all by self with the help of PHP.<br />
Problem:&#8221;If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.</p>
<p>Find the sum of all the multiples of 3 or 5 below 1000.<br />
&#8221;<br />
Solution:<br />
&#8220;&lt;?php<br />
for($counter=1; $counter &lt; 1000 ; $counter ++)<br />
{<br />
//echo &#8221;</p>
<p>&#8220;;<br />
//echo &#8221;<br />
<strong>&#8220;.$counter.&#8221;&#8211;&gt;</strong> &#8220;;</p>
<p>$int_var1 = ($counter/3); //current counter will be divided by 3<br />
$int_var2 = ($counter/5); //current counter will be divided by 5</p>
<p>$str_type1 = gettype($int_var1); //This will return integer if counter was divided by 3 properly<br />
$str_type2 = gettype($int_var2); //This will return integer if counter was divided by 5 properly</p>
<p>if ($str_type1 == &#8216;integer&#8217; || $str_type2 == &#8216;integer&#8217; ) //to check which &#8220;counter&#8221; was properly divided<br />
{<br />
//echo &#8220;This is integer&#8221;;<br />
$int_result = $int_result+$counter;</p>
<p>}<br />
else<br />
{<br />
//echo &#8221; NON INTEGER&#8221; ;<br />
}<br />
}<br />
echo &#8220;<strong>Result is: $int_result </strong> &#8220;;</p>
<p>?&gt;<br />
&#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2009/11/problem-and-solution/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Simple File Browser with Pictures Explorer</title>
		<link>http://www.phpdone.com/blog/2009/11/simple-file-browser-with-pictures-explorer/</link>
		<comments>http://www.phpdone.com/blog/2009/11/simple-file-browser-with-pictures-explorer/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 21:05:45 +0000</pubDate>
		<dc:creator>Dr. Perl</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[File System]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Explorer]]></category>
		<category><![CDATA[Files]]></category>
		<category><![CDATA[Files Management]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=118</guid>
		<description><![CDATA[This simple file browser, written in PHP, is a very useful library of functions. This library provides basic functionality of file and directory browsing along with many configurable options.
However this is a basic version, and I just wrote it to use at a client&#8217;s website. I will be extending it more to provide other useful [...]]]></description>
			<content:encoded><![CDATA[<p>This simple file browser, written in PHP, is a very useful library of functions. This library provides basic functionality of file and directory browsing along with many configurable options.</p>
<p>However this is a basic version, and I just wrote it to use at a client&#8217;s website. I will be extending it more to provide other useful options like Delete, Move, Copy, Rename and etc.</p>
<p>Currently, it provides listing of directories and files. Navigation thru directories, opening files. You can also use it as an Image/Picture Explorer. There&#8217;s a file &#8220;fb.php&#8221; included which demonstrate the usage at front-end. Following files are included in this package:</p>
<ul>
<li>fb.config.php: the configuration file</li>
<li>fb.lib.php: the main library file, contains all functions</li>
<li>fb.css: the sample style sheet</li>
<li>fb.php: the sample usage file</li>
<li>images folder: includes icons for file types</li>
</ul>
<p>Download source code here <a href="http://www.phpdone.com/blog/wp-content/uploads/2009/11/file_browser.zip">File Browser Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2009/11/simple-file-browser-with-pictures-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript</title>
		<link>http://www.phpdone.com/blog/2009/11/javascript/</link>
		<comments>http://www.phpdone.com/blog/2009/11/javascript/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 19:36:04 +0000</pubDate>
		<dc:creator>Dr. Perl</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=113</guid>
		<description><![CDATA[All about JavaScript and related to PHP also.
]]></description>
			<content:encoded><![CDATA[<p>All about JavaScript and related to PHP also.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2009/11/javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Designs</title>
		<link>http://www.phpdone.com/blog/2009/11/web-designs/</link>
		<comments>http://www.phpdone.com/blog/2009/11/web-designs/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 19:32:19 +0000</pubDate>
		<dc:creator>Dr. Perl</dc:creator>
				<category><![CDATA[Web Designs]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=111</guid>
		<description><![CDATA[Ready made designs, contributed from our members and from different volunteer resources. Information on good designs, techniques and many more&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Ready made designs, contributed from our members and from different volunteer resources. Information on good designs, techniques and many more&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2009/11/web-designs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web 2.0</title>
		<link>http://www.phpdone.com/blog/2009/11/web-2-0/</link>
		<comments>http://www.phpdone.com/blog/2009/11/web-2-0/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 19:18:11 +0000</pubDate>
		<dc:creator>Dr. Perl</dc:creator>
				<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=109</guid>
		<description><![CDATA[All about Web 2.0 &#8211; Standards, Implementation, Uses and etc.
]]></description>
			<content:encoded><![CDATA[<p>All about Web 2.0 &#8211; Standards, Implementation, Uses and etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2009/11/web-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS &amp; HTML</title>
		<link>http://www.phpdone.com/blog/2009/11/css-html/</link>
		<comments>http://www.phpdone.com/blog/2009/11/css-html/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 19:11:25 +0000</pubDate>
		<dc:creator>Dr. Perl</dc:creator>
				<category><![CDATA[CSS & HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=105</guid>
		<description><![CDATA[All about CSS and HTML/XHTML will be posted under this category.
]]></description>
			<content:encoded><![CDATA[<p>All about CSS and HTML/XHTML will be posted under this category.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2009/11/css-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
