<?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 Tutorials and Forums</title>
	<atom:link href="http://phpdebutant.com/feed" rel="self" type="application/rss+xml" />
	<link>http://phpdebutant.com</link>
	<description>PHP Tutorials, Free PHP Scripts, Form Validation With PHP</description>
	<pubDate>Sat, 12 Jul 2008 01:04:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>PHPDebutant.com Re-launched!</title>
		<link>http://phpdebutant.com/phpdebutantcom-re-launched.php</link>
		<comments>http://phpdebutant.com/phpdebutantcom-re-launched.php#comments</comments>
		<pubDate>Mon, 16 Jun 2008 22:51:49 +0000</pubDate>
		<dc:creator>PHP Godfather</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://phpdebutant.com/?p=3</guid>
		<description><![CDATA[For years PHPDebutant.com was pretty dead.
Finally I have some time to give it a face lift (using Wordpress as homepage, and Simplemachine forum as the forum app) and will be able to get involved in the forum and answer some of your tough questions.
Whether you are a beginning PHP programmers, webmasters, or an expert, you [...]]]></description>
			<content:encoded><![CDATA[<p>For years PHPDebutant.com was pretty dead.</p>
<p>Finally I have some time to give it a face lift (using Wordpress as homepage, and Simplemachine forum as the <a href="http://www.phpdebutant.com/forums">forum app</a>) and will be able to get involved in the forum and answer some of your tough questions.</p>
<p>Whether you are a beginning PHP programmers, webmasters, or an expert, you are welcomed to participate and help each other out.</p>
<p>You are invited to submit your PHP tutorials.  Simple <a href="http://phpdebutant.com/wp-login.php?action=register">register</a> to this blog and start posting away.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpdebutant.com/phpdebutantcom-re-launched.php/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to email with PHP</title>
		<link>http://phpdebutant.com/how-to-email-with-php.php</link>
		<comments>http://phpdebutant.com/how-to-email-with-php.php#comments</comments>
		<pubDate>Sat, 12 Jul 2008 01:04:41 +0000</pubDate>
		<dc:creator>PHP Godfather</dc:creator>
		
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://phpdebutant.com/?p=10</guid>
		<description><![CDATA[Sending emails via PHP is rather simple with the mail() function.
mail() function has the following function prototype:
bool mail  ( string $to  , string $subject  , string $message  [, string $additional_headers  [, string $additional_parameters  ]] )
Here is an example usage:
$EMAIL_HEADER = &#8220;From: Sender Name &#60;sender@example.com&#62;\r\n&#8221;;
$EMAIL_HEADER .= &#8220;MIME-Version: 1.0\r\n&#8221;;
$EMAIL_HEADER .= &#8220;X-Priority: 1\r\n&#8221;;
$EMAIL_HEADER .= &#8220;X-MSmail-Priority: High\r\n&#8221;;
$MESSAGE=&#8221;
Hello there,
This is [...]]]></description>
			<content:encoded><![CDATA[<p>Sending emails via PHP is rather simple with the mail() function.</p>
<p>mail() function has the following function prototype:</p>
<p>bool mail  ( string $to  , string $subject  , string $message  [, string $additional_headers  [, string $additional_parameters  ]] )</p>
<p>Here is an example usage:</p>
<blockquote><p>$EMAIL_HEADER = &#8220;From: Sender Name &lt;sender@example.com&gt;\r\n&#8221;;<br />
$EMAIL_HEADER .= &#8220;MIME-Version: 1.0\r\n&#8221;;<br />
$EMAIL_HEADER .= &#8220;X-Priority: 1\r\n&#8221;;<br />
$EMAIL_HEADER .= &#8220;X-MSmail-Priority: High\r\n&#8221;;</p>
<p>$MESSAGE=&#8221;<br />
Hello there,</p>
<p>This is a test message.</p>
<p>From Admin.&#8221;;</p>
<p>mail(&#8221;recipient@domain.com&#8221;, &#8220;Example Subject&#8221;, $MESSAGE, $EMAIL_HEADER);</p></blockquote>
<p>The above code will send out an email to recipient@domain.com with subject &#8220;Example Subject&#8221; and the message stored in $MESSAGE variable.</p>
<p>The $EMAIL_HEADER determines that this email will be sent from Sender Name &lt;sender@example.com&gt; and is high priority.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpdebutant.com/how-to-email-with-php.php/feed</wfw:commentRss>
		</item>
		<item>
		<title>Generate PHP Random String</title>
		<link>http://phpdebutant.com/generate-php-random-string.php</link>
		<comments>http://phpdebutant.com/generate-php-random-string.php#comments</comments>
		<pubDate>Tue, 01 Jul 2008 06:46:13 +0000</pubDate>
		<dc:creator>PHP Godfather</dc:creator>
		
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://phpdebutant.com/?p=8</guid>
		<description><![CDATA[It&#8217;s easy to use to use the rand(min, max) function to generate a random number between min and max (inclusive).
Here is a clever way of using rand() and chr() function to generate a random string:
chr(rand(65,90)) will generate a random character between A - Z (capital)
chr(rand(97,122)) will generate a random character between a - z (lower [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s easy to use to use the rand(min, max) function to generate a random number between min and max (inclusive).</p>
<p>Here is a clever way of using rand() and chr() function to generate a random string:</p>
<p>chr(rand(65,90)) will generate a random character between A - Z (capital)</p>
<p>chr(rand(97,122)) will generate a random character between a - z (lower case)</p>
<p>Therefore, if you want to generate a 5 character long string of random string (assuming all lower case), you would write:</p>
<p>$RandomString=chr(rand(97,122)).chr(rand(97,122)).chr(rand(97,122)).chr(rand(97,122)).chr(rand(97,122));</p>
<p>Or you can write a simple for() loop and concatenate them together.</p>
<p>Hope that helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpdebutant.com/generate-php-random-string.php/feed</wfw:commentRss>
		</item>
		<item>
		<title>HTML link with no underline</title>
		<link>http://phpdebutant.com/html-link-with-no-underline.php</link>
		<comments>http://phpdebutant.com/html-link-with-no-underline.php#comments</comments>
		<pubDate>Thu, 19 Jun 2008 19:24:36 +0000</pubDate>
		<dc:creator>PHP Godfather</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://phpdebutant.com/?p=7</guid>
		<description><![CDATA[Creating a HTML anchor text link with no underline is really simple.
By default, a hyperlink tag has the following structure:
&#60;a href=&#8221;http://www.phpdebutant.com/forums&#8221;&#62;PHP Forums&#60;/a&#62;
When viewed in browser, it shows as:
PHP Forums
If you want to get rid of the underline, you can specify it in the CSS style property:
&#60;a href=&#8221;http://www.phpdebutant.com/forums&#8221; style=&#8221;text-decoration:none;&#8221;&#62;PHP Forums&#60;/a&#62;
When viewed in browser, it will show [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a HTML anchor text link with no underline is really simple.</p>
<p>By default, a hyperlink tag has the following structure:</p>
<p>&lt;a href=&#8221;http://www.phpdebutant.com/forums&#8221;&gt;PHP Forums&lt;/a&gt;</p>
<p>When viewed in browser, it shows as:</p>
<p><a style="text-decoration:underline;" href="http://www.phpdebutant.com/forums">PHP Forums</a></p>
<p>If you want to get rid of the underline, you can specify it in the CSS style property:</p>
<p>&lt;a href=&#8221;http://www.phpdebutant.com/forums&#8221; style=&#8221;text-decoration:none;&#8221;&gt;PHP Forums&lt;/a&gt;</p>
<p>When viewed in browser, it will show as:</p>
<p><a style="text-decoration:none;" href="http://www.phpdebutant.com/forums">PHP Forums</a></p>
<p>Subsequently, if there is a CSS stylesheet that forces all anchor tags to be displayed without an underline, you can use style=&#8221;text-decoration:underline;&#8221; to turn it back on.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpdebutant.com/html-link-with-no-underline.php/feed</wfw:commentRss>
		</item>
		<item>
		<title>Free PHP Tutorial</title>
		<link>http://phpdebutant.com/free-php-tutorial.php</link>
		<comments>http://phpdebutant.com/free-php-tutorial.php#comments</comments>
		<pubDate>Wed, 18 Jun 2008 23:19:03 +0000</pubDate>
		<dc:creator>PHP Godfather</dc:creator>
		
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://phpdebutant.com/?p=6</guid>
		<description><![CDATA[Periodically we will publish free, helpful PHP tutorials for your application or program.
If you have a PHP tutorial and would like to share it with us, feel free to register at our site and make your submission.
In our PHP tutorial archive, we have tutorials that were published years ago (date back to 2003).  While [...]]]></description>
			<content:encoded><![CDATA[<p>Periodically we will publish free, helpful PHP tutorials for your application or program.</p>
<p>If you have a PHP tutorial and would like to share it with us, feel free to <a href="http://phpdebutant.com/wp-login.php?action=register">register</a> at our site and make your submission.</p>
<p>In our <a href="http://www.phpdebutant.com/index1.php">PHP tutorial archive</a>, we have tutorials that were published years ago (date back to 2003).  While they are a good starting point, you may also want to try our <a href="http://www.phpdebutant.com/forums">PHP forum</a> where you can get specific questions answered.</p>
<p><a href="http://php.net">PHP.net</a> is also a very good starting point.  Our <a href="http://phpdebutant.com/forums/index.php?board=2.0">PHP functions forums</a> is a place to further compliment PHP.net&#8217;s function reference where we discuss practical function usage and examples.</p>
<p>Stay tuned&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://phpdebutant.com/free-php-tutorial.php/feed</wfw:commentRss>
		</item>
		<item>
		<title>Passing values in the URL in PHP</title>
		<link>http://phpdebutant.com/passing-values-in-the-url-in-php.php</link>
		<comments>http://phpdebutant.com/passing-values-in-the-url-in-php.php#comments</comments>
		<pubDate>Tue, 17 Jun 2008 23:09:55 +0000</pubDate>
		<dc:creator>PHP Godfather</dc:creator>
		
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://phpdebutant.com/?p=5</guid>
		<description><![CDATA[It is very easy to pass values in the URL as a query string, and get those values to a PHP processor file.
For example, if we want to pass a tracking session ID in the URL, such as:
http://www.phpdebutant.com/tracking.php?session=ABC123
In our tracking.php, we can print out the value that is passed in via the URL by referencing [...]]]></description>
			<content:encoded><![CDATA[<p>It is very easy to pass values in the URL as a query string, and get those values to a PHP processor file.</p>
<p>For example, if we want to pass a tracking session ID in the URL, such as:</p>
<p>http://www.phpdebutant.com/tracking.php?session=ABC123</p>
<p>In our tracking.php, we can print out the value that is passed in via the URL by referencing to $_GET[session] or $_REQUEST[session] variable:</p>
<blockquote><p>echo $_REQUEST[session];</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://phpdebutant.com/passing-values-in-the-url-in-php.php/feed</wfw:commentRss>
		</item>
		<item>
		<title>PHP query string without question mark</title>
		<link>http://phpdebutant.com/php-query-string-without-question-mark.php</link>
		<comments>http://phpdebutant.com/php-query-string-without-question-mark.php#comments</comments>
		<pubDate>Mon, 16 Jun 2008 23:09:15 +0000</pubDate>
		<dc:creator>PHP Godfather</dc:creator>
		
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://phpdebutant.com/?p=4</guid>
		<description><![CDATA[If you want to pass variables in the URL without having to use ?var=value format, then you will need .htaccess file and a URL RewriteRule.
For example, let&#8217;s say we want to pass a variable via the query string http://www.phpdebutant.com/var1=value1, then we would use a .htaccess file and place it in the public_html folder.
The .htaccess file [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to pass variables in the URL without having to use ?var=value format, then you will need .htaccess file and a URL RewriteRule.</p>
<p>For example, let&#8217;s say we want to pass a variable via the query string http://www.phpdebutant.com/var1=value1, then we would use a .htaccess file and place it in the public_html folder.</p>
<p>The .htaccess file would like this:</p>
<blockquote><p>&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteRule ^(.+)=(.+)$ /index.php?$1=$2</p></blockquote>
<p>Notice the use of regular expression:</p>
<p>^ denotes the beginning of the line<br />
$ denotes the end of the line</p>
<p>We use ( ) to enclose a regular expression match, so the value of the first match would be in $1, and second would be in $2.</p>
<p>The RewriteRule says that whatever query matches that regular expression, we would redirect the request to /index.php?$1=$2 where $1 and $2 are the values of the match.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpdebutant.com/php-query-string-without-question-mark.php/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
