<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>JustPHPInfo.COM</title>
	
	<link>http://www.justphpinfo.com</link>
	<description>The PHP Tips Online Bible</description>
	<lastBuildDate>Tue, 02 Jun 2009 21:49:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/justphpinfo" type="application/rss+xml" /><feedburner:emailServiceId>justphpinfo</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>How to build your own Joomla Adsense Module?</title>
		<link>http://feedproxy.google.com/~r/justphpinfo/~3/wR0a8HFdwJY/</link>
		<comments>http://www.justphpinfo.com/how-to-build-your-own-joomla-adsense-module/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 21:45:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.justphpinfo.com/?p=112</guid>
		<description><![CDATA[First of all, you don&#8217;t need to build your own Joomla Adsense Module you can use a module type already found in the Joomla Core: custom HTML module.  I have seen many people developing AdSense Modules but the issue here is that you don&#8217;t need to install nothing additional in order to get Adsense at [...]]]></description>
			<content:encoded><![CDATA[<p>First of all, you don&#8217;t need to build your own Joomla Adsense Module you can use a module type already found in the Joomla Core: custom HTML module.  I have seen many people developing AdSense Modules but the issue here is that you don&#8217;t need to install nothing additional in order to get Adsense at your site.</p>
<p><span id="more-112"></span>I built a time ago a plugin for Joomla to insert adsense inside the article content but this is another story.</p>
<p>The tricky part here is how to insert the javascript generated from your Google account.  This is easy and we will continue with a step by step guide to get your own Joomla Adsense Module.</p>
<ol>
<li>Your first step will be to deactivate your Joomla default WYSIWYG editor, so, go to your administrator control panel and click on =&gt; Site =&gt;Global configuration.  Look for the parameter: Default WYSIWYG Editor and change it to &#8220;Editor &#8211; no editor&#8221;.  Save your preferences.</li>
<li>Now that you have the editor deactivated we are going to add a new module to our site.  Go to =&gt; Extensions =&gt; Module manager and click the New icon.</li>
<li>Select Custom HTML and click next.</li>
<li>Add a title, enable the module and select your desired position.</li>
<li>In the custom output box paste the code you got from your Google account.</li>
<li>Click save and that&#8217;s it.  You have your own Joomla Adsense Module.</li>
</ol>
<p>Finally don&#8217;t forget to activate again your Default WYSIWYG Editor.</p>
<img src="http://feeds.feedburner.com/~r/justphpinfo/~4/wR0a8HFdwJY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.justphpinfo.com/how-to-build-your-own-joomla-adsense-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.justphpinfo.com/how-to-build-your-own-joomla-adsense-module/</feedburner:origLink></item>
		<item>
		<title>Prototype, AJAX and PHP</title>
		<link>http://feedproxy.google.com/~r/justphpinfo/~3/A2PO12X4vu0/</link>
		<comments>http://www.justphpinfo.com/prototype-ajax-and-php/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 16:57:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[prototype]]></category>

		<guid isPermaLink="false">http://www.justphpinfo.com/?p=106</guid>
		<description><![CDATA[When we build Web 2.0 applications we have to deal, eventually, with some way to update our pages "on the fly" and one of the best solutions I found is to combine Prototype, the javascript framework (http://www.prototypejs.org/), and AJAX.
As this type of solution is oriented to advanced developers I'm not going to explain here the [...]]]></description>
			<content:encoded><![CDATA[<p>When we build Web 2.0 applications we have to deal, eventually, with some way to update our pages "on the fly" and one of the best solutions I found is to combine Prototype, the javascript framework (<a href="http://www.prototypejs.org/">http://www.prototypejs.org/</a>), and AJAX.</p>
<p><span id="more-106"></span>As this type of solution is oriented to advanced developers I'm not going to explain here the concepts, how to add prototype or things like these.  If you are new to some concepts just Google them.</p>
<p>Ok, let's begin.</p>
<p>First we are going to use a prototype class named AJAX with the following syntax:</p>
<div class="igBar"><span id="ljavascript-2"><a href="#" onclick="javascript:showCodeTxt('javascript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-2">
<div class="javascript javascript" style="font-family:monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #003366; font-weight: bold;">var</span> sUrl <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;./mydata.php&quot;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">&nbsp;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #003366; font-weight: bold;">new</span> Ajax.<span style="color: #660066;">Request</span><span style="color: #009900;">&#40;</span>sUrl<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"> method<span style="color: #339933;">:</span> <span style="color: #3366CC;">'get'</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"> parameters<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> year<span style="color: #339933;">:</span> <span style="color: #3366CC;">'2009'</span><span style="color: #339933;">,</span> header<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Months'</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"> onSuccess<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>transport<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #CC0000;color:#800000;">200</span> <span style="color: #339933;">==</span> transport.<span style="color: #000066;">status</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">   <span style="color: #003366; font-weight: bold;">var</span> myData <span style="color: #339933;">=</span> transport.<span style="color: #660066;">responseText</span>.<span style="color: #660066;">evalJSON</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #009900;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"> <span style="color: #009900;">&#125;</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Our explanation is the following:</p>
<ul>
<li>We are using the method request of our Ajax prototype class</li>
<li>sUrl is a variable containing the url of the external file we are linking to, remember that this URL can’t begin with http because of the same-domain policy of Ajax even if the URL points internally</li>
<li>In the method we can use 'get' or 'post' off course</li>
<li>Parameters argument is an object that can contain any number of property/value pairs</li>
<li>onSuccess defines a function to receive the results of our file, as we can send any kind of content here we are using JSON and I recommend you to use JSON to move great volumes of content, use the <strong>json_encode</strong> function in PHP to prepare your data.</li>
</ul>
<p> </p>
<p>As you see it's really simple to make an AJAX request using prototype.</p>
<img src="http://feeds.feedburner.com/~r/justphpinfo/~4/A2PO12X4vu0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.justphpinfo.com/prototype-ajax-and-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.justphpinfo.com/prototype-ajax-and-php/</feedburner:origLink></item>
		<item>
		<title>How to download and install free PHP, Apache and MySQL on Windows?</title>
		<link>http://feedproxy.google.com/~r/justphpinfo/~3/Mtu4eAlRiZE/</link>
		<comments>http://www.justphpinfo.com/how-to-download-and-install-free-php-apache-and-mysql-on-windows/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 21:46:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.justphpinfo.com/?p=81</guid>
		<description><![CDATA[One of the most searched information about PHP is how to install it on a Windows environment.  We’re going to use the following lines to help you understand the procedure, but, firstly, let me talk a bit more about what PHP needs to run.
As you already now, PHP is a server side scripting language that [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">One of the most searched information about PHP is how to install it on a Windows environment.  We’re going to use the following lines to help you understand the procedure, but, firstly, let me talk a bit more about what PHP needs to run.</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">As you already now, PHP is a server side scripting language that helps you program web sites so you will need to have a web server running in your Windows XP or Windows Vista computer.  If you need PHP to build complex application you will need a database to store your data, here is when MySQL appears on the stage.</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">So, in this short procedure we’re going to use Apache as a server, MySQL as our database and, off course, PHP as our programming language.</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">You have two methods to follow on:</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span id="more-81"></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">1. Using ApacheFriends.org XAMPP distribution.</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">This is without a doubt the simplest procedure you can apply in order to get your Windows PC running PHP.  All you have to do is go to this link <a href="http://www.apachefriends.org/en/xampp-windows.html">http://www.apachefriends.org/en/xampp-windows.html</a>, scroll down a bit and download XAMPP to your PC.  After that, just double-click the file and continue with the installation wizard steps.</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">This procedure will automatically install, Apache, MySQL and PHP (and some other stuffs) and you have plenty instructions to follow on at that site.</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">2. Using the manual step by step procedure.</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">This is my favorite procedure (I’m a developer do you remember?) because I have plenty control over every program.  Ok, let’s go…</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">First you need to download the files:</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">- Apache is at: <a href="http://httpd.apache.org/">http://httpd.apache.org/</a> - I recommend you to install 2.2.X version because as they say: “…represents the best available version of Apache HTTP Server”</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">- MySQL is at: <a href="http://dev.mysql.com/downloads/">http://dev.mysql.com/downloads/</a> - Click on “take me to the community downloads!” and download the last stable version for windows.  MySQL 5.1 at time of writing this.</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">- PHP is at: <a href="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a> - Go there and download PHP last available version.</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">Now we’re going to install each application as they were independent applications, later we will join them to work together.</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">2.1 Installing Apache</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">Installing apache is as easy as follow the installation wizard, the issue here is to know what to fill in every textbox in the fourth step.  So, doble-click the first wizard steps, I recommend you to take some time to read every screen, until you reach the fourth screen where you will type:</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<div id="attachment_94" class="wp-caption alignnone" style="width: 510px"><a href="http://www.justphpinfo.com/wp-content/uploads/2008/12/apache041.png"><img class="size-medium wp-image-94" title="Installing Apache - Step 4" src="http://www.justphpinfo.com/wp-content/uploads/2008/12/apache041-500x381.png" alt="Installing Apache - Step 4" width="500" height="381" /></a><p class="wp-caption-text">Installing Apache - Step 4</p></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">I'm adding the full wizard steps in this gallery:</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<div class="ngg-galleryoverview" id="ngg-gallery-1-81">


	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://www.justphpinfo.com/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=1&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	
	<!-- Thumbnails -->
		
	<div id="ngg-image-1" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-php/Apache01.png" title=" " class="shutterset_installing-php" >
				<img title="Installing Apache - Step 1" alt="Installing Apache - Step 1" src="http://www.justphpinfo.com/wp-content/gallery/installing-php/thumbs/thumbs_Apache01.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-2" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-php/Apache02.png" title=" " class="shutterset_installing-php" >
				<img title="Installing Apache - Step 2" alt="Installing Apache - Step 2" src="http://www.justphpinfo.com/wp-content/gallery/installing-php/thumbs/thumbs_Apache02.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-3" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-php/Apache03.png" title=" " class="shutterset_installing-php" >
				<img title="Installing Apache - Step 3" alt="Installing Apache - Step 3" src="http://www.justphpinfo.com/wp-content/gallery/installing-php/thumbs/thumbs_Apache03.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-4" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-php/Apache04.png" title=" " class="shutterset_installing-php" >
				<img title="Installing Apache - Step 4" alt="Installing Apache - Step 4" src="http://www.justphpinfo.com/wp-content/gallery/installing-php/thumbs/thumbs_Apache04.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-5" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-php/Apache05.png" title=" " class="shutterset_installing-php" >
				<img title="Installing Apache - Step 5" alt="Installing Apache - Step 5" src="http://www.justphpinfo.com/wp-content/gallery/installing-php/thumbs/thumbs_Apache05.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-6" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-php/Apache06.png" title=" " class="shutterset_installing-php" >
				<img title="Installing Apache - Step 6" alt="Installing Apache - Step 6" src="http://www.justphpinfo.com/wp-content/gallery/installing-php/thumbs/thumbs_Apache06.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-7" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-php/Apache07.png" title=" " class="shutterset_installing-php" >
				<img title="Installing Apache - Step 7" alt="Installing Apache - Step 7" src="http://www.justphpinfo.com/wp-content/gallery/installing-php/thumbs/thumbs_Apache07.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-8" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-php/Apache08.png" title=" " class="shutterset_installing-php" >
				<img title="Installing Apache - Step 8" alt="Installing Apache - Step 8" src="http://www.justphpinfo.com/wp-content/gallery/installing-php/thumbs/thumbs_Apache08.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">2.2 Installing MySQL</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
<div class="ngg-galleryoverview" id="ngg-gallery-2-81">


	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://www.justphpinfo.com/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=2&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	
	<!-- Thumbnails -->
		
	<div id="ngg-image-9" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL01.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 1" alt="Installing MySQL - Step 1" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL01.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-10" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL02.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 2" alt="Installing MySQL - Step 2" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL02.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-11" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL03.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 3" alt="Installing MySQL - Step 3" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL03.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-12" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL04.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 4" alt="Installing MySQL - Step 4" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL04.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-13" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL05.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 5" alt="Installing MySQL - Step 5" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL05.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-14" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL06.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 6" alt="Installing MySQL - Step 6" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL06.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-15" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL07.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 7" alt="Installing MySQL - Step 7" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL07.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-16" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL08.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 8" alt="Installing MySQL - Step 8" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL08.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-17" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL09.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 9" alt="Installing MySQL - Step 9" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL09.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-18" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL10.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 10" alt="Installing MySQL - Step 10" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL10.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-19" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL11.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 11" alt="Installing MySQL - Step 11" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL11.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-20" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL12.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 12" alt="Installing MySQL - Step 12" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL12.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-21" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL13.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 13" alt="Installing MySQL - Step 13" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL13.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-22" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL14.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 14" alt="Installing MySQL - Step 14" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL14.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-23" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL15.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 15" alt="Installing MySQL - Step 15" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL15.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-24" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/MySQL16.png" title=" " class="shutterset_installing-mysql" >
				<img title="Installing MySQL - Step 16" alt="Installing MySQL - Step 16" src="http://www.justphpinfo.com/wp-content/gallery/installing-mysql/thumbs/thumbs_MySQL16.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

 </p>
<p> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">2.3 Installing PHP</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">Finally, to add PHP to your current Apache installation just download and unzip the file and copy the whole folder to your C drive and rename it php (c:\php).  Then add the following lines to the end of your httpd.conf file:</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"># Loading PHP 5 Module<br />
LoadModule php5_module C:/php/php5apache2_2.dll<br />
AddType application/x-httpd-php .php<br />
PHPINIDir c:/php</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">You can get this configuration file from: Start - All programs - Apache HTTP Server 2.2 - Configure Apache Server - Edit the Apache httpd.conf...</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">That's it.  Easy.  Right?</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p>
<img src="http://feeds.feedburner.com/~r/justphpinfo/~4/Mtu4eAlRiZE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.justphpinfo.com/how-to-download-and-install-free-php-apache-and-mysql-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.justphpinfo.com/how-to-download-and-install-free-php-apache-and-mysql-on-windows/</feedburner:origLink></item>
		<item>
		<title>How to Implement a Clickbank validator script?</title>
		<link>http://feedproxy.google.com/~r/justphpinfo/~3/k6UPi29OGnA/</link>
		<comments>http://www.justphpinfo.com/how-to-implement-a-clickbank-validator-script/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 14:14:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Clickbank script]]></category>

		<guid isPermaLink="false">http://www.justphpinfo.com/?p=66</guid>
		<description><![CDATA[One of the problems for any Clickbank marketer is how to validate payments before giving access to her/his Clickbank product download page.
Clickbank guys have given us a useful clickbank script function for PHP to help us deal with this problem.  Firstly let me show you the function and later we will talk a little more [...]]]></description>
			<content:encoded><![CDATA[<p>One of the problems for any Clickbank marketer is how to validate payments before giving access to her/his Clickbank product download page.</p>
<p>Clickbank guys have given us a useful clickbank script function for PHP to help us deal with this problem.  Firstly let me show you the function and later we will talk a little more about it.</p>
<p><span id="more-66"></span>Ok... the function:</p>
<div class="igBar"><span id="lphp-5"><a href="#" onclick="javascript:showCodeTxt('php-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-5">
<div class="php php" style="font-family:monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000000; font-weight: bold;">function</span> cbValid<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#123;</span> <span style="color: #000088;">$key</span><span style="color: #339933;">=</span><span style="">'YOUR SECRET KEY'</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #000088;">$rcpt</span><span style="color: #339933;">=</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="">'cbreceipt'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #000088;">$time</span><span style="color: #339933;">=</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="">'time'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #000088;">$item</span><span style="color: #339933;">=</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="">'item'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #000088;">$cbpop</span><span style="color: #339933;">=</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="">'cbpop'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #000088;">$xxpop</span><span style="color: #339933;">=</span><a target="_blank" href="http://www.php.net/sha1"><span style="color: #990000;">sha1</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;$key|$rcpt|$time|$item&quot;</span><span style="color: #009900;">&#41;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #000088;">$xxpop</span><span style="color: #339933;">=</span><a target="_blank" href="http://www.php.net/strtoupper"><span style="color: #990000;">strtoupper</span></a><span style="color: #009900;">&#40;</span><a target="_blank" href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$xxpop</span><span style="color: #339933;">,</span><span style="color:#800080;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;color:#800000;">8</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">&nbsp;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$cbpop</span><span style="color: #339933;">==</span><span style="color: #000088;">$xxpop</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #cc66cc;color:#800000;">1</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">return</span> <span style="color:#800080;">0</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>This is a ready to call function to validate a buyer before grant access to our Clickbank product.</p>
<p>As this must be a black box for us we just need to update our key ($key='YOUR SECRET KEY') with the one defined in our Clickbank account and we're ready.</p>
<p>You need to add the function and the following code at the top of your Clickbank dowload page:</p>
<div class="igBar"><span id="lphp-6"><a href="#" onclick="javascript:showCodeTxt('php-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-6">
<div class="php php" style="font-family:monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000000; font-weight: bold;">function</span> cbValid<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#123;</span> <span style="color: #000088;">$key</span><span style="color: #339933;">=</span><span style="">'YOUR SECRET KEY'</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #000088;">$rcpt</span><span style="color: #339933;">=</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="">'cbreceipt'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #000088;">$time</span><span style="color: #339933;">=</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="">'time'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #000088;">$item</span><span style="color: #339933;">=</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="">'item'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #000088;">$cbpop</span><span style="color: #339933;">=</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="">'cbpop'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #000088;">$xxpop</span><span style="color: #339933;">=</span><a target="_blank" href="http://www.php.net/sha1"><span style="color: #990000;">sha1</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;$key|$rcpt|$time|$item&quot;</span><span style="color: #009900;">&#41;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #000088;">$xxpop</span><span style="color: #339933;">=</span><a target="_blank" href="http://www.php.net/strtoupper"><span style="color: #990000;">strtoupper</span></a><span style="color: #009900;">&#40;</span><a target="_blank" href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$xxpop</span><span style="color: #339933;">,</span><span style="color:#800080;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;color:#800000;">8</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">&nbsp;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$cbpop</span><span style="color: #339933;">==</span><span style="color: #000088;">$xxpop</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #cc66cc;color:#800000;">1</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">return</span> <span style="color:#800080;">0</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">&nbsp;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> cbValid<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color:#800080;">0</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <a target="_blank" href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <span style="color: #009900;">&#40;</span> <span style="">'Direct access to this file is not allowed.'</span> <span style="color: #009900;">&#41;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <a target="_blank" href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#125;</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #666666; font-style: italic;">// Add from here your own download page.</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>This option will prevent real buyers to return to our download page for downloading their product again, so you can add them to a buyer’s database if you want to give them access for downloading the product more than once.</p>
<p>If you have any question do not hesitate to write a comment.</p>
<img src="http://feeds.feedburner.com/~r/justphpinfo/~4/k6UPi29OGnA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.justphpinfo.com/how-to-implement-a-clickbank-validator-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.justphpinfo.com/how-to-implement-a-clickbank-validator-script/</feedburner:origLink></item>
		<item>
		<title>PHP Paypal Validator Script</title>
		<link>http://feedproxy.google.com/~r/justphpinfo/~3/d2ypzx__QgA/</link>
		<comments>http://www.justphpinfo.com/php-paypal-validator-script/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 16:15:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[pay pal]]></category>
		<category><![CDATA[Paypal]]></category>

		<guid isPermaLink="false">http://www.justphpinfo.com/?p=40</guid>
		<description><![CDATA[If you want to validate a Paypal payment process before giving access a client to your product or service you just need tu customize this simple script and you will be safe about fraudulent downloads.
The procedure is very simple.
First you need to create your paypal form in a way that it returns to a script [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to validate a Paypal payment process before giving access a client to your product or service you just need tu customize this simple script and you will be safe about fraudulent downloads.</p>
<p>The procedure is very simple.</p>
<p>First you need to create your paypal form in a way that it returns to a script on your site.  For example you could create a file named paypal-validator.php on your root site and create your paypal form this way:</p>
<p><span id="more-40"></span>
<div class="igBar"><span id="lhtml4strict-10"><a href="#" onclick="javascript:showCodeTxt('html4strict-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html4strict-10">
<div class="html4strict html4strict" style="font-family:monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>form action=&quot;<span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;https://www.paypal.com/cgi-bin/webscr&quot;</span>&gt;</span>https://www.paypal.com/cgi-bin/webscr<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span>&quot; method=&quot;post&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;hidden&quot; name=&quot;cmd&quot; value=&quot;_xclick&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;hidden&quot; name=&quot;business&quot; value=&quot;<span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mailto:billing@mysite.com&quot;</span>&gt;</span>billing@mysite.com<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span>&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;hidden&quot; name=&quot;item_name&quot; value=&quot;My Product&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;hidden&quot; name=&quot;item_number&quot; value=&quot;2&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;hidden&quot; name=&quot;amount&quot; value=&quot;7.00&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;hidden&quot; name=&quot;no_shipping&quot; value=&quot;1&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;<span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.mysite.com/paypal-validator.php&quot;</span>&gt;</span>http://www.mysite.com/paypal-validator.php<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span>&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;hidden&quot; name=&quot;rm&quot; value=&quot;2&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;hidden&quot; name=&quot;no_note&quot; value=&quot;1&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;hidden&quot; name=&quot;currency_code&quot; value=&quot;USD&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;hidden&quot; name=&quot;lc&quot; value=&quot;US&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;hidden&quot; name=&quot;bn&quot; value=&quot;PP-BuyNowBF&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;image&quot; src=&quot;<span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;https://www.paypal.com/en_US/i/btn/x-click-but5.gif&quot;</span>&gt;</span>https://www.paypal.com/en_US/i/btn/x-click-but5.gif<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span>&quot; border=&quot;0&quot; name=&quot;submit&quot; alt=&quot;Make payments with PayPal - it's fast, free and secure!&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>img alt=&quot;&quot; border=&quot;0&quot; src=&quot;<span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;https://www.paypal.com/en_US/i/scr/pixel.gif&quot;</span>&gt;</span>https://www.paypal.com/en_US/i/scr/pixel.gif<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span>&quot; width=&quot;1&quot; height=&quot;1&quot; /<span style="color: #ddbb00;">></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>/form<span style="color: #ddbb00;">></span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>You can build this form by hand or using the paypal wizard but the important field here is:</p>
<div class="igBar"><span id="lhtml4strict-11"><a href="#" onclick="javascript:showCodeTxt('html4strict-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html4strict-11">
<div class="html4strict html4strict" style="font-family:monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #ddbb00;"><</span>input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;<span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.mysite.com/paypal-validator.php&quot;</span>&gt;</span>http://www.mysite.com/paypal-validator.php<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span>&quot; /<span style="color: #ddbb00;">></span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>You will specify paypal that you want to return the client no directly to your download page but to your paypal php validator script.</p>
<p>Paypal validator file must contain the following code:</p>
<div class="igBar"><span id="lphp-12"><a href="#" onclick="javascript:showCodeTxt('php-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-12">
<div class="php php" style="font-family:monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #666666; font-style: italic;">// First we make some simple validation, you can hardening this to your desire level.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a target="_blank" href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="">'txn_id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">    <a target="_blank" href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <span style="">'Direct access to this file is not allowed.'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">   </div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">    <span style="color: #b1b100;">return</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#125;</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #666666; font-style: italic;">// read the post from PayPal system and add 'cmd'</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$req</span> <span style="color: #339933;">=</span> <span style="">'cmd=_notify-validate'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">&nbsp;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">=></span> <span style="color: #000088;">$value</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">    <span style="color: #000088;">$value</span> <span style="color: #339933;">=</span> <a target="_blank" href="http://www.php.net/urlencode"><span style="color: #990000;">urlencode</span></a><span style="color: #009900;">&#40;</span><a target="_blank" href="http://www.php.net/stripslashes"><span style="color: #990000;">stripslashes</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">    <span style="color: #000088;">$req</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&amp;amp;$key=$value&quot;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#125;</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #666666; font-style: italic;">// post back to PayPal system to validate</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$header</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;POST /cgi-bin/webscr HTTP/1.0<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$header</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Content-Type: application/x-www-form-urlencoded<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$header</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Content-Length: &quot;</span> <span style="color: #339933;">.</span> <a target="_blank" href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$req</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">&nbsp;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$fp</span> <span style="color: #339933;">=</span> <a target="_blank" href="http://www.php.net/fsockopen"><span style="color: #990000;">fsockopen</span></a> <span style="color: #009900;">&#40;</span><span style="">'www.paypal.com'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;color:#800000;">80</span><span style="color: #339933;">,</span> <span style="color: #000088;">$errno</span><span style="color: #339933;">,</span> <span style="color: #000088;">$errstr</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;color:#800000;">30</span><span style="color: #009900;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">&nbsp;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #666666; font-style: italic;">// assign posted variables to local variables</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$item_name</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="">'item_name'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$item_number</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="">'item_number'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$payment_status</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="">'payment_status'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$payment_amount</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="">'mc_gross'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$payment_currency</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="">'mc_currency'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$txn_id</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="">'txn_id'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$receiver_email</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="">'receiver_email'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$payer_email</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="">'payer_email'</span><span style="color: #009900;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">&nbsp;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">    <span style="color: #666666; font-style: italic;">// HTTP ERROR</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">    <a target="_blank" href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <span style="">'There was an error connecting back to Paypal please contact us at: &lt;a href=&quot;mailto:support@mysite.com&quot;&gt;support@mysite.com&lt;/a&gt; with your payment details.'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">   </div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">    <span style="color: #b1b100;">return</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">    <a target="_blank" href="http://www.php.net/fputs"><span style="color: #990000;">fputs</span></a> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #000088;">$header</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$req</span><span style="color: #009900;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a target="_blank" href="http://www.php.net/feof"><span style="color: #990000;">feof</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">        <span style="color: #000088;">$res</span> <span style="color: #339933;">=</span> <a target="_blank" href="http://www.php.net/fgets"><span style="color: #990000;">fgets</span></a> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;color:#800000;">1024</span><span style="color: #009900;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a target="_blank" href="http://www.php.net/strcmp"><span style="color: #990000;">strcmp</span></a> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$res</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;VERIFIED&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color:#800080;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">            <span style="color: #666666; font-style: italic;">// check the payment_status is Completed</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">            <span style="color: #666666; font-style: italic;">// check that txn_id has not been previously processed</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">            <span style="color: #666666; font-style: italic;">// check that receiver_email is your Primary PayPal email</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">            <span style="color: #666666; font-style: italic;">// check that payment_amount/payment_currency are correct</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">            <span style="color: #666666; font-style: italic;">// process payment</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">&nbsp;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">            <span style="color: #666666; font-style: italic;">// Change here to give the client access to your product or service</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">            <a target="_blank" href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <span style="">'This is a valid Paypal client'</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">           </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">            <span style="color: #b1b100;">return</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">        <span style="color: #009900;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">        <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a target="_blank" href="http://www.php.net/strcmp"><span style="color: #990000;">strcmp</span></a> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$res</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;INVALID&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color:#800080;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">            <span style="color: #666666; font-style: italic;">// log for manual investigation</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">            <a target="_blank" href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <span style="">'Restricted Access'</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">            <a target="_blank" href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <span style="">'If you got this page after a valid purchasing procedure please contact us at: &lt;a href=&quot;mailto:support@mysite.com&quot;&gt;support@mysite.com&lt;/a&gt; with some details of your Paypal receipt.'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">           </div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">            <span style="color: #b1b100;">return</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">        <span style="color: #009900;">&#125;</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">    <span style="color: #009900;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">    <a target="_blank" href="http://www.php.net/fclose"><span style="color: #990000;">fclose</span></a> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Feel free to copy and paste this code and begin testing, if you have any question do not hesitate to leave a comment.</p>
<img src="http://feeds.feedburner.com/~r/justphpinfo/~4/d2ypzx__QgA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.justphpinfo.com/php-paypal-validator-script/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.justphpinfo.com/php-paypal-validator-script/</feedburner:origLink></item>
		<item>
		<title>Joomla 1.5 Super Administrator Password Reset</title>
		<link>http://feedproxy.google.com/~r/justphpinfo/~3/XVmM1PbTDdM/</link>
		<comments>http://www.justphpinfo.com/forgotreset-your-joomla-super-administrator-password/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 21:20:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://www.justphpinfo.com/?p=33</guid>
		<description><![CDATA[In order to reset the Joomla admin password, you just need to apply the following steps:
Joomla 1.5
- Open the database using phpMyAdmin and go to the table, jos_users . (replace jos_ with your own table prefix if this is different than the default).
- Select the record for the administrator account - by default this is [...]]]></description>
			<content:encoded><![CDATA[<p>In order to reset the Joomla admin password, you just need to apply the following steps:</p>
<p><strong>Joomla 1.5</strong></p>
<p>- Open the database using phpMyAdmin and go to the table, jos_users . (replace jos_ with your own table prefix if this is different than the default).</p>
<p><span id="more-33"></span>- Select the record for the administrator account - by default this is user 62 (admin).</p>
<p>- Copy and paste the MD5 # below to the password field and save the changes: 21232f297a57a5a743894a0e4a801fc3</p>
<p>- Logon to the back end <a href="http://yoursitedomain.com/administrator">http://yoursitedomain.com/administrator</a>  using the username <strong>admin</strong> and the password <strong>admin</strong> in the login box.</p>
<p>- Select the user you have just logged in with using this password and username and change the password for the user to something else. This is extremely important otherwise your website might get hacked.</p>
<p>I applied these same steps to a Joomla 1.0 site and works fine for me, but you need to consider that there could be many situations related with the encryption procedure that could make your change to fail in Joomla 1.0 just because the encryption algorithm is not corresponding with the 'admin' word.</p>
<img src="http://feeds.feedburner.com/~r/justphpinfo/~4/XVmM1PbTDdM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.justphpinfo.com/forgotreset-your-joomla-super-administrator-password/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.justphpinfo.com/forgotreset-your-joomla-super-administrator-password/</feedburner:origLink></item>
		<item>
		<title>How to determine if the user is viewing the Joomla front page</title>
		<link>http://feedproxy.google.com/~r/justphpinfo/~3/1wpNKVHf03U/</link>
		<comments>http://www.justphpinfo.com/how-to-determine-if-the-user-is-viewing-the-joomla-front-page/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 17:18:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[joomla frontpage]]></category>

		<guid isPermaLink="false">http://www.justphpinfo.com/?p=24</guid>
		<description><![CDATA[If you're using Joomla! 1.0 then you'll only need to verify the current component with the following command:
PLAIN TEXT
PHP:




if &#40;$option == 'com_frontpage' &#124;&#124; $option == ''&#41; &#123;


  echo 'This is the front page';


&#125;






This task for Joomla! 1.5 could be easily confirmed by the following command:

PLAIN TEXT
PHP:




if &#40; JRequest::getVar&#40;'view'&#41; === 'frontpage' &#41; &#123;


  echo 'This is the front page';


&#125;






Just [...]]]></description>
			<content:encoded><![CDATA[<p>If you're using Joomla! 1.0 then you'll only need to verify the current component with the following command:</p>
<div class="igBar"><span id="lphp-16"><a href="#" onclick="javascript:showCodeTxt('php-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-16">
<div class="php php" style="font-family:monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$option</span> <span style="color: #339933;">==</span> <span style="">'com_frontpage'</span> || <span style="color: #000088;">$option</span> <span style="color: #339933;">==</span> <span style="">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <a target="_blank" href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <span style="">'This is the front page'</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>This task for Joomla! 1.5 could be easily confirmed by the following command:</p>
<p><span id="more-24"></span>
<div class="igBar"><span id="lphp-17"><a href="#" onclick="javascript:showCodeTxt('php-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-17">
<div class="php php" style="font-family:monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> JRequest<span style="color: #339933;">::</span><span style="color: #004000;">getVar</span><span style="color: #009900;">&#40;</span><span style="">'view'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="">'frontpage'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <a target="_blank" href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <span style="">'This is the front page'</span>;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Just in case the above command doesn't work then the issue could be a little more complicated and need to check if the current active menu item is the default one.  I saw this issue in some 1.5 early versions.</p>
<div class="igBar"><span id="lphp-18"><a href="#" onclick="javascript:showCodeTxt('php-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-18">
<div class="php php" style="font-family:monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #000088;">$menu</span> <span style="color: #339933;">=&amp;</span> JSite<span style="color: #339933;">::</span><span style="color: #004000;">getMenu</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$menu</span><span style="color: #339933;">-></span>getActive<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$menu</span><span style="color: #339933;">-></span>getDefault<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;">  <a target="_blank" href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <span style="">'This is the front page'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<img src="http://feeds.feedburner.com/~r/justphpinfo/~4/1wpNKVHf03U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.justphpinfo.com/how-to-determine-if-the-user-is-viewing-the-joomla-front-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.justphpinfo.com/how-to-determine-if-the-user-is-viewing-the-joomla-front-page/</feedburner:origLink></item>
		<item>
		<title>How to display a PHP date some days in the past</title>
		<link>http://feedproxy.google.com/~r/justphpinfo/~3/_0SmR9Yu2fo/</link>
		<comments>http://www.justphpinfo.com/how-to-display-a-php-date-some-days-in-the-past/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 21:50:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Dates]]></category>

		<guid isPermaLink="false">http://www.justphpinfo.com/?p=16</guid>
		<description><![CDATA[This is a very high demand trick, what you need is to print a date but this date must be some days in the past, maybe 2 or 3 days ago.  There is a powerful command for that, let me show you the command and then we'll talk a little more about it.
PLAIN TEXT
PHP:




echo date&#40;'F [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very high demand trick, what you need is to print a date but this date must be some days in the past, maybe 2 or 3 days ago.  There is a powerful command for that, let me show you the command and then we'll talk a little more about it.</p>
<div class="igBar"><span id="lphp-21"><a href="#" onclick="javascript:showCodeTxt('php-21'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-21">
<div class="php php" style="font-family:monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><a target="_blank" href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <a target="_blank" href="http://www.php.net/date"><span style="color: #990000;">date</span></a><span style="color: #009900;">&#40;</span><span style="">'F j, Y'</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span><a target="_blank" href="http://www.php.net/time"><span style="color: #990000;">time</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;color:#800000;">3</span> <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;color:#800000;">60</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;color:#800000;">60</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;color:#800000;">24</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><span id="more-16"></span>What we are doing here is really simple.  We're displaying a PHP date, off course, with a customized format 'F j, Y' this will print something like 'July 25, 2008'.  The tricky part comes with the formula for calculating the date, if you missed it this is the formula:</p>
<div class="igBar"><span id="lphp-22"><a href="#" onclick="javascript:showCodeTxt('php-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-22">
<div class="php php" style="font-family:monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; padding:0; background:inherit;"><span style="color: #009900;">&#40;</span><a target="_blank" href="http://www.php.net/time"><span style="color: #990000;">time</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;color:#800000;">3</span> <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;color:#800000;">60</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;color:#800000;">60</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;color:#800000;">24</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>time() is current time, - 3 are the days in the past we need our date, but why days? Because (60 * 60 * 24). If you think a bit, this is the formula for calculating how many seconds a day has: 60 seconds multiplied by 60 minutes multiplied by 24 hours a day equals 86,400 seconds. You got it? Very easy, right?</p>
<p>So what portion of the formula are you going to change to display a date 5 days in the past? Right, replace -3 by - 5.</p>
<p>But if you need a date in the future? Right, don't subtract just add, replace - 5 by + 5. That's it.</p>
<img src="http://feeds.feedburner.com/~r/justphpinfo/~4/_0SmR9Yu2fo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.justphpinfo.com/how-to-display-a-php-date-some-days-in-the-past/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.justphpinfo.com/how-to-display-a-php-date-some-days-in-the-past/</feedburner:origLink></item>
	</channel>
</rss>
