<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Raymond Selda &#187; PHP</title>
	<atom:link href="http://www.raymondselda.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raymondselda.com</link>
	<description></description>
	<lastBuildDate>Mon, 21 Nov 2011 04:31:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP Contact Form with jQuery Validation</title>
		<link>http://www.raymondselda.com/php-contact-form-with-jquery-validation/</link>
		<comments>http://www.raymondselda.com/php-contact-form-with-jquery-validation/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 14:51:27 +0000</pubDate>
		<dc:creator>Raymond Selda</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.raymondselda.com/?p=585</guid>
		<description><![CDATA[Hi there! You need a jQuery contact form for your website but don&#8217;t know how to create one? Please read along and maybe you&#8217;ll get lucky. A contact form is very helpful in giving your visitors a way to contact you. In this tutorial, I will help you on how to create your own jQuery [...]]]></description>
			<content:encoded><![CDATA[<p id="top" /><span class="dropcaps">H</span>i there! You need a jQuery contact form for your website but don&#8217;t know how to create one? Please read along and maybe you&#8217;ll get lucky. A contact form is very helpful in giving your visitors a way to contact you. In this tutorial, I will help you on how to create your own jQuery contact form using <a rel="nofollow" href="http://php.net">PHP</a> and <a rel="nofollow" href="http://jquery.com">JQuery</a>.</p>
<p><span id="more-585"></span></p>
<p>Let&#8217;s start with the basics. We only need a <strong>single page</strong> for our contact form and this page will contain the markup, PHP to process our contact form and JQuery validating. For those who need to see a working demo of the jQuery contact form, you can check it out <a href="http://raymondselda.com/demo/php-contact-form/contact.php">here</a>.</p>
<h2>Step One: jQuery Contact Form Markup</h2>
<p>First, let&#8217;s create the markup for our contact form. Create a new page called <strong>contact.php</strong> (or whatever name you want as long as it has a PHP extension). Having a PHP file affords us the luxury of only having a single page to display and at the same time process our contact form. We also used a PHP constant for the action value of our contact form. That constant is the filename of the current file, relative to the document root. This is to ensure us that our form will go to the same page after sending our form.</p>
<pre class="xhtml">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;

&lt;head&gt;
	&lt;title&gt;PHP Contact Form with JQuery Validation&lt;/title&gt;
	&lt;meta http-equiv="content-type" content="text/html;charset=utf-8" /&gt;
	&lt;meta http-equiv="Content-Style-Type" content="text/css" /&gt;

	&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;

	&lt;style type="text/css"&gt;

	&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id="contact-wrapper"&gt;
	&lt;form method="post" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;" id="contactform"&gt;
		&lt;div&gt;
		    &lt;label for="name"&gt;&lt;strong&gt;Name:&lt;/strong&gt;&lt;/label&gt;
			&lt;input type="text" size="50" name="contactname" id="contactname" value="" /&gt;
		&lt;/div&gt;

		&lt;div&gt;
			&lt;label for="email"&gt;&lt;strong&gt;Email:&lt;/strong&gt;&lt;/label&gt;
			&lt;input type="text" size="50" name="email" id="email" value="" /&gt;
		&lt;/div&gt;

		&lt;div&gt;
			&lt;label for="subject"&gt;&lt;strong&gt;Subject:&lt;/strong&gt;&lt;/label&gt;
			&lt;input type="text" size="50" name="subject" id="subject" value="" /&gt;
		&lt;/div&gt;

		&lt;div&gt;
			&lt;label for="message"&gt;&lt;strong&gt;Message:&lt;/strong&gt;&lt;/label&gt;
			&lt;textarea rows="5" cols="50" name="message" id="message"&gt;&lt;/textarea&gt;
		&lt;/div&gt;
	    &lt;input type="submit" value="Send Message" name="submit" /&gt;
	&lt;/form&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>Step Two: Give it some style</h2>
<p>We&#8217;re going to apply some styling to our contact form using CSS to make it more interesting. For the purposes of this tutorial we&#8217;re going to embed our CSS right inside contact.php inside the <strong>head</strong> section and in between the <strong>style</strong> tags.</p>
<pre class="css">body {
	font-family:Arial, Tahoma, sans-serif;
}
#contact-wrapper {
	width:430px;
	border:1px solid #e2e2e2;
	background:#f1f1f1;
	padding:20px;
}
#contact-wrapper div {
	clear:both;
	margin:1em 0;
}
#contact-wrapper label {
	display:block;
	float:none;
	font-size:16px;
	width:auto;
}
form#contactform input {
	border-color:#B7B7B7 #E8E8E8 #E8E8E8 #B7B7B7;
	border-style:solid;
	border-width:1px;
	padding:5px;
	font-size:16px;
	color:#333;
}
form#contactform textarea {
	font-family:Arial, Tahoma, Helvetica, sans-serif;
	font-size:100%;
	padding:0.6em 0.5em 0.7em;
	border-color:#B7B7B7 #E8E8E8 #E8E8E8 #B7B7B7;
	border-style:solid;
	border-width:1px;
}</pre>
<p>If you&#8217;re following along, your contact form should look like this:<br />
<img class="alignnone size-full wp-image-710" title="contactform screenshot" src="http://www.raymondselda.com/wp-content/uploads/2009/04/contactform.png" alt="contactform screenshot" width="483" height="479" /></p>
<h2>Step Three: Validate using JQuery</h2>
<p>We already loaded JQuery in case you haven&#8217;t noticed in our initial contact form markup:</p>
<pre class="xhtml">&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;</pre>
<p>Loading JQuery alone only gets half of the job done. We still need a JQuery plugin called <a rel="nofollow" href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/">Validation</a> to help us validate our contact form. After you&#8217;ve downloaded and extracted the plugin, look for <strong>jquery.validate.pack.js</strong> file and save it where your <strong>contact.php</strong> is saved and reference it from the file just like what you did with JQuery.</p>
<pre class="xhtml">&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="jquery.validate.pack.js" type="text/javascript"&gt;&lt;/script&gt;</pre>
<p>Now we need to initialize the JQuery:Validation plugin in order to use it. Take note that <strong>#contactform</strong> is the id value of the form.</p>
<pre class="xhtml">&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="jquery.validate.pack.js" type="text/javascript"&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function(){
	$("#contactform").validate();
});
&lt;/script&gt;</pre>
<p>After that, we now need to add a class attribute to our input fields. If you just need a required field you just add <strong>class=&#8221;required&#8221;</strong> to the input tag and when you need to require and validate an email so that the format is correct then you need to add <strong>class=&#8221;required email&#8221;</strong>. Here&#8217;s the updated markup for our jQuery contact form with the classes already added.</p>
<pre class="xhtml">&lt;form method="post" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;" id="contactform"&gt;
	&lt;div&gt;
	    &lt;label for="name"&gt;&lt;strong&gt;Name:&lt;/strong&gt;&lt;/label&gt;
		&lt;input type="text" size="50" name="contactname" id="contactname" value="" class="required" /&gt;
	&lt;/div&gt;

	&lt;div&gt;
		&lt;label for="email"&gt;&lt;strong&gt;Email:&lt;/strong&gt;&lt;/label&gt;
		&lt;input type="text" size="50" name="email" id="email" value="" class="required email" /&gt;
	&lt;/div&gt;

	&lt;div&gt;
		&lt;label for="subject"&gt;&lt;strong&gt;Subject:&lt;/strong&gt;&lt;/label&gt;
		&lt;input type="text" size="50" name="subject" id="subject" value="" class="required" /&gt;
	&lt;/div&gt;

	&lt;div&gt;
		&lt;label for="message"&gt;&lt;strong&gt;Message:&lt;/strong&gt;&lt;/label&gt;
		&lt;textarea rows="5" cols="50" name="message" id="message" class="required"&gt;&lt;/textarea&gt;
	&lt;/div&gt;
    &lt;input type="submit" value="Send Message" name="submit" /&gt;
&lt;/form&gt;</pre>
<p>Now refresh your jQuery contact page and submit the contact form without entering any data. Your contact page will catch the errors and hopefully will look like the image below. Also try entering a different format for the email field and you should see a different message. Try reading the Validation documentation for more validation options.</p>
<p><img class="alignnone size-full wp-image-740" title="contact form with validation" src="http://www.raymondselda.com/wp-content/uploads/2009/04/contactform2.png" alt="contact form with validation" width="483" height="560" /></p>
<h2>Step Four: Submit and process the form using PHP</h2>
<p>Now it&#8217;s time to add some PHP magic to our jQuery contact form! Place this code on the topmost section of your file (just above your DOCTYPE declaration). You might be wondering why we need to validate the inputs again even if we already validated the inputs using Javascript. The reason is that PHP will act as our second level of validation in case Javascript is turned off on the client&#8217;s machine. I highly suggest that you don&#8217;t rely on Javascript alone for validating form inputs. Aside from validating inputs, PHP will also be responsible for sending out the email in case no errors were found.</p>
<p>I&#8217;ve stripped down and borrowed the code below from this very <a rel="nofollow" href="http://trevordavis.net/blog/tutorial/wordpress-jquery-contact-form-without-a-plugin/">helpful article</a>. The green comments should basically explain what each code snippet is doing.</p>
<pre class="php">&lt;?php
//If the form is submitted
if(isset($_POST['submit'])) {

	//Check to make sure that the name field is not empty
	if(trim($_POST['contactname']) == '') {
		$hasError = true;
	} else {
		$name = trim($_POST['contactname']);
	}

	//Check to make sure that the subject field is not empty
	if(trim($_POST['subject']) == '') {
		$hasError = true;
	} else {
		$subject = trim($_POST['subject']);
	}

	//Check to make sure sure that a valid email address is submitted
	if(trim($_POST['email']) == '')  {
		$hasError = true;
	} else if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", trim($_POST['email']))) {
		$hasError = true;
	} else {
		$email = trim($_POST['email']);
	}

	//Check to make sure comments were entered
	if(trim($_POST['message']) == '') {
		$hasError = true;
	} else {
		if(function_exists('stripslashes')) {
			$comments = stripslashes(trim($_POST['message']));
		} else {
			$comments = trim($_POST['message']);
		}
	}

	//If there is no error, send the email
	if(!isset($hasError)) {
		$emailTo = 'youremail@yoursite.com'; //Put your own email address here
		$body = "Name: $name \n\nEmail: $email \n\nSubject: $subject \n\nComments:\n $comments";
		$headers = 'From: My Site &lt;'.$emailTo.'&gt;' . "\r\n" . 'Reply-To: ' . $email;

		mail($emailTo, $subject, $body, $headers);
		$emailSent = true;
	}
}
?&gt;</pre>
<p>We&#8217;re almost finished! All we have to do is insert a little more PHP to output two kinds of messages. The first message is to notify us in case there were errors after our submission, and the other is a message to tell us that the email was already sent and no errors were found. The code for that will just sit right inside the <strong>contact-wrapper</strong> div but right before the jQuery contact form markup.</p>
<pre class="php">&lt;?php if(isset($hasError)) { //If errors are found ?&gt;
	&lt;p class="error"&gt;Please check if you've filled all the fields with valid information. Thank you.&lt;/p&gt;
&lt;?php } ?&gt;

&lt;?php if(isset($emailSent) &amp;&amp; $emailSent == true) { //If email is sent ?&gt;
	&lt;p&gt;&lt;strong&gt;Email Successfully Sent!&lt;/strong&gt;&lt;/p&gt;
	&lt;p&gt;Thank you &lt;strong&gt;&lt;?php echo $name;?&gt;&lt;/strong&gt; for using my contact form! Your email was successfully sent and I will be in touch with you soon.&lt;/p&gt;
&lt;?php } ?&gt;</pre>
<h2>Finished Code</h2>
<pre class="xhtml">&lt;?php
//If the form is submitted
if(isset($_POST['submit'])) {

	//Check to make sure that the name field is not empty
	if(trim($_POST['contactname']) == '') {
		$hasError = true;
	} else {
		$name = trim($_POST['contactname']);
	}

	//Check to make sure that the subject field is not empty
	if(trim($_POST['subject']) == '') {
		$hasError = true;
	} else {
		$subject = trim($_POST['subject']);
	}

	//Check to make sure sure that a valid email address is submitted
	if(trim($_POST['email']) == '')  {
		$hasError = true;
	} else if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", trim($_POST['email']))) {
		$hasError = true;
	} else {
		$email = trim($_POST['email']);
	}

	//Check to make sure comments were entered
	if(trim($_POST['message']) == '') {
		$hasError = true;
	} else {
		if(function_exists('stripslashes')) {
			$comments = stripslashes(trim($_POST['message']));
		} else {
			$comments = trim($_POST['message']);
		}
	}

	//If there is no error, send the email
	if(!isset($hasError)) {
		$emailTo = 'youremail@yoursite.com'; //Put your own email address here
		$body = "Name: $name \n\nEmail: $email \n\nSubject: $subject \n\nComments:\n $comments";
		$headers = 'From: My Site &lt;'.$emailTo.'&gt;' . "\r\n" . 'Reply-To: ' . $email;

		mail($emailTo, $subject, $body, $headers);
		$emailSent = true;
	}
}
?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;

&lt;head&gt;
	&lt;title&gt;PHP Contact Form with JQuery Validation&lt;/title&gt;
	&lt;meta http-equiv="content-type" content="text/html;charset=utf-8" /&gt;
	&lt;meta http-equiv="Content-Style-Type" content="text/css" /&gt;

&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="jquery.validate.pack.js" type="text/javascript"&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function(){
	$("#contactform").validate();
});
&lt;/script&gt;

&lt;style type="text/css"&gt;
body {
	font-family:Arial, Tahoma, sans-serif;
}
#contact-wrapper {
	width:430px;
	border:1px solid #e2e2e2;
	background:#f1f1f1;
	padding:20px;
}
#contact-wrapper div {
	clear:both;
	margin:1em 0;
}
#contact-wrapper label {
	display:block;
	float:none;
	font-size:16px;
	width:auto;
}
form#contactform input {
	border-color:#B7B7B7 #E8E8E8 #E8E8E8 #B7B7B7;
	border-style:solid;
	border-width:1px;
	padding:5px;
	font-size:16px;
	color:#333;
}
form#contactform textarea {
	font-family:Arial, Tahoma, Helvetica, sans-serif;
	font-size:100%;
	padding:0.6em 0.5em 0.7em;
	border-color:#B7B7B7 #E8E8E8 #E8E8E8 #B7B7B7;
	border-style:solid;
	border-width:1px;
}
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
	&lt;div id="contact-wrapper"&gt;

	&lt;?php if(isset($hasError)) { //If errors are found ?&gt;
		&lt;p class="error"&gt;Please check if you've filled all the fields with valid information. Thank you.&lt;/p&gt;
	&lt;?php } ?&gt;

	&lt;?php if(isset($emailSent) &amp;&amp; $emailSent == true) { //If email is sent ?&gt;
		&lt;p&gt;&lt;strong&gt;Email Successfully Sent!&lt;/strong&gt;&lt;/p&gt;
		&lt;p&gt;Thank you &lt;strong&gt;&lt;?php echo $name;?&gt;&lt;/strong&gt; for using my contact form! Your email was successfully sent and I will be in touch with you soon.&lt;/p&gt;
	&lt;?php } ?&gt;

	&lt;form method="post" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;" id="contactform"&gt;
		&lt;div&gt;
		    &lt;label for="name"&gt;&lt;strong&gt;Name:&lt;/strong&gt;&lt;/label&gt;
			&lt;input type="text" size="50" name="contactname" id="contactname" value="" class="required" /&gt;
		&lt;/div&gt;

		&lt;div&gt;
			&lt;label for="email"&gt;&lt;strong&gt;Email:&lt;/strong&gt;&lt;/label&gt;
			&lt;input type="text" size="50" name="email" id="email" value="" class="required email" /&gt;
		&lt;/div&gt;

		&lt;div&gt;
			&lt;label for="subject"&gt;&lt;strong&gt;Subject:&lt;/strong&gt;&lt;/label&gt;
			&lt;input type="text" size="50" name="subject" id="subject" value="" class="required" /&gt;
		&lt;/div&gt;

		&lt;div&gt;
			&lt;label for="message"&gt;&lt;strong&gt;Message:&lt;/strong&gt;&lt;/label&gt;
			&lt;textarea rows="5" cols="50" name="message" id="message" class="required"&gt;&lt;/textarea&gt;
		&lt;/div&gt;
	    &lt;input type="submit" value="Send Message" name="submit" /&gt;
	&lt;/form&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>We are Done!</h2>
<p>You have created a jQuery contact form using PHP and JQuery for validation all contained in a single page! All you have to do is put your email address in line 41 and off you go! Great job! I hope you will find this tutorial helpful as I&#8217;ve carefully detailed all the steps needed to create our contact form. Please tell me what you think and I would appreciate your comment. Thank you so much for reading and hope to see you again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raymondselda.com/php-contact-form-with-jquery-validation/feed/</wfw:commentRss>
		<slash:comments>276</slash:comments>
		</item>
		<item>
		<title>PHP Pagination Script</title>
		<link>http://www.raymondselda.com/php-pagination-script/</link>
		<comments>http://www.raymondselda.com/php-pagination-script/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 07:54:43 +0000</pubDate>
		<dc:creator>Raymond Selda</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.raymondselda.com/?p=49</guid>
		<description><![CDATA[As a developer there will come a time when we need to fetch huge amount of records to display on a single page. An example is when you&#8217;re trying to develop an e-commerce site and you need to output lets say 500 book titles. Another example would be in a member management type of system [...]]]></description>
			<content:encoded><![CDATA[<p id="top" /><span class="dropcaps">A</span>s a developer there will come a time when we need to fetch huge amount of records to display on a single page. An example is when you&#8217;re trying to develop an e-commerce site and you need to output lets say 500 book titles. Another example would be in a member management  type of system wherein you need to list all of the registered members of the site. What you need to do is not list all of the records in a single page but rather split the results into pages because users are too lazy to scroll down. This is where pagination comes into play.</p>
<p><span id="more-49"></span></p>
<p>I&#8217;m not going to reinvent the wheel by coming up with another pagination script instead I will suggest that you checkout and try <a title="PHP Pagination Script" href="http://phpsense.com/php/php-pagination-script.html" target="_blank">PHP Pagination Script</a> from <a title="PHP Sense" href="http://phpsense.com/" target="_blank">PHPSense</a>. Its a PHP class that is very easy to integrate with your existing applications by following these few simple steps:</p>
<h2>Step One: Include the Pagination Class</h2>
<pre class="php" name="code">
include('ps_pagination.php');
</pre>
<h2>Step Two: Connect to MySQL database</h2>
<pre class="php" name="code">
$conn = mysql_connect('localhost', 'username', 'password');
mysql_select_db('yourdatabase', $conn);
$sql = 'SELECT post_title FROM wp_posts WHERE post_type="post" ORDER BY ID DESC';
</pre>
<h2>Step Three: Create the pagination object</h2>
<p>The pagination object accepts four parameters:</p>
<ul>
<li>MySQL connection link</li>
<li>SQL query</li>
<li>Number of records to display per page. Defaults to 10</li>
<li>Number of pagination links to display. Defaults to 5</li>
</ul>
<pre class="php" name="code">
$pager = new PS_Pagination($conn, $sql, 10, 5);
</pre>
<h2>Step Four: The paginate() function returns a mysql result set</h2>
<p>After creating the pagination object, call the paginate() function from the object. This function returns the paginated result set for the current page. You can use this result set just as you would use a standard MySQL result set.</p>
<pre class="php" name="code">
$rs = $pager->paginate();
while($row = mysql_fetch_assoc($rs)) {
	echo $row['post_title'],"\n";
}
</pre>
<h2>Step Five: Display the full navigation</h2>
<pre class="php" name="code">
echo $pager->renderFullNav();
</pre>
<h2>Finished Code</h2>
<pre class="php" name="code">
//Include the PS_Pagination class
include('ps_pagination.php');

//Connect to mysql db
$conn = mysql_connect('localhost','root','');
mysql_select_db('yourdatabase',$conn);
$sql = 'SELECT post_title FROM wp_posts WHERE post_type="post" ORDER BY ID DESC';

//Create a PS_Pagination object
$pager = new PS_Pagination($conn,$sql,10,10);

//The paginate() function returns a mysql result set
$rs = $pager->paginate();
while($row = mysql_fetch_assoc($rs)) {
	echo $row['post_title'],"\n";
}

//Display the full navigation in one go
echo $pager->renderFullNav();
</pre>
<p>As you can see its very simple to use in your applications. Paginating pages is one of the most commonly requested functions in websites and this is one of the many scripts that can really help you with your projects. I have been looking for a pagination script for a while now and by far this is the best and most efficient pagination script I&#8217;ve used. As always feel free to suggest if you&#8217;re using any pagination scripts. Hoping to learn from you guys. Thanks for reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raymondselda.com/php-pagination-script/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Google Page Rank Reporting</title>
		<link>http://www.raymondselda.com/google-page-rank-reporting/</link>
		<comments>http://www.raymondselda.com/google-page-rank-reporting/#comments</comments>
		<pubDate>Thu, 30 Aug 2007 07:33:14 +0000</pubDate>
		<dc:creator>Raymond Selda</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://raymondselda.com/google-page-rank-reporting/</guid>
		<description><![CDATA[I have a client who asked me to write a script where it will display the page ranks for each of the backlinks in a particular domain. He gave me some scripts (actually there is only one script) and sites where I can find one. There were a lot of scripts around but none of [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />I have a client who asked me to write a script where it will display the page ranks for each of the backlinks in a particular domain. He gave me some scripts (actually there is only one script) and sites where I can find one. There were a lot of scripts around but none of them really worked as far as copying and pasting the code is concerned. Even if I tried editing the script, it can be quite a headache making it to work.</p>
<p><span id="more-5"></span></p>
<ul class="egg">
<li><a href="http://www.raymondselda.com/free-wordpress-business-theme/" class="internal">prototype xhtml model</a></li>
<li><a href="http://www.raymondselda.com/websites-to-download-your-free-ebook/" class="internal">prototyping techniques</a></li>
<li><a href="http://www.raymondselda.com/100-nice-and-beautiful-blog-designs/" class="internal">xhtml wireframes</a></li>
<li><a href="http://www.raymondselda.com/my-top-undiscovered-websites/" class="internal">prototyping with xhtml</a></li>
<li><a href="http://www.raymondselda.com/my-first-wordpress-theme-launched/" class="internal">xhtml prototyping</a></li>
</ul>
<p>Although I didn&#8217;t get the &#8220;Forbidden&#8221; 403 error from Google. The page rank value was always 1 even for Google. So after more than 5 hours of searching I found the script that is similar to the original script with only a slight modification.</p>
<p>Details and script can be found <a href="http://v1.magicbeandip.com/archives/2006/05/07/page-rank-tool/" title="google page rank reporting tool">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raymondselda.com/google-page-rank-reporting/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

