<?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>PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</title>
	<atom:link href="http://www.phpmagicbook.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpmagicbook.com</link>
	<description>PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips</description>
	<lastBuildDate>Thu, 14 Jan 2010 20:13:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Htaccess Mod Rewrite Practical Essential Important Solutions &#8211; Update</title>
		<link>http://www.phpmagicbook.com/htaccess-mod-rewrite-practical-essential-important-solutions-update/</link>
		<comments>http://www.phpmagicbook.com/htaccess-mod-rewrite-practical-essential-important-solutions-update/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 20:11:59 +0000</pubDate>
		<dc:creator>King</dc:creator>
				<category><![CDATA[Mod Rewrite]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=506</guid>
		<description><![CDATA[I have been experimenting with .htaccess a lot regarding with mod rewriting and URL rewriting and had a lot of difficulty finding the solutions regarding to exact problem I faced. This stuff is such a headache. I am feeling headache right now as I am typing after messing with a lot of .htaccess codes. Here [...]<p><a href="http://www.phpmagicbook.com/htaccess-mod-rewrite-practical-essential-important-solutions-update/">Htaccess Mod Rewrite Practical Essential Important Solutions &#8211; Update</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I have been experimenting with .htaccess a lot regarding with mod rewriting and URL rewriting and had a lot of difficulty finding the solutions regarding to exact problem I faced. This stuff is such a headache. I am feeling headache right now as I am typing after messing with a lot of .htaccess codes. Here is an update regarding essential stuff which you will find useful if you are trying to change your URLS from index.php to index.html or index.php to index and if after putting RewriteEngine on images are not showing up at pages. Following exercises will answer these tasks in htacces mod rewrite:</p>
<p>1- How to enable RewriteEngine for htaccess and localhost<br />
2- Images are not showing after RewriteEngine on<br />
3- Images in second level directory are not showing after RewriteEngine on<br />
e.g. <strong>images/1.jpg</strong> is showing but <strong>images/icons/2.jpg</strong> is not showing up<br />
4- Want to change <strong>index.php</strong> into <strong>index</strong> or <strong>about.php</strong> into <strong>about</strong><br />
5- Want to change all <strong>pages.php</strong> to <strong>pages.html</strong> for site using htaccess<br />
6- Want to Rewrite <strong>yoursite.com/user.php?username=xyz</strong> to <strong>yoursite.com/xyz</strong><br />
7- Want to Rewriting <strong>product.php?id=12</strong> to <strong>product/ipod-nano/12.html</strong><br />
8- Want to change <strong>product.php?id=5</strong> to <strong>porduct-5.html</strong></p>
<p><span id="more-506"></span></p>
<h4>Enable ReWrite Engine</h4>
<p>Before rewriting do this in .htaccess file.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Options <span style="color: #339933;">+</span>FollowSymLinks
RewriteEngine on</pre></div></div>

<p>and after that start rewriting</p>
<h4>Images not showing after RewriteEngine on</h4>
<p>Solve images problem which sometimes does not show if you enable rewrite engine in .htaccess. I was trying to change index.php to index and when I did that, images from first images directory were displaying (images/) but the second level images (images/icons/) were not displaying. Even when I tried the absolute path, images from images/icons/ directory were not displaying. The trick is that, you have to rewrite images directory as well and similarly sometimes css and js directories also. In this case when I tried the following code, my problem was solved.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">RewriteRule ^images<span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.+</span><span style="color: #009900;">&#41;</span>?$ images<span style="color: #339933;">/</span>$<span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#91;</span>NC<span style="color: #339933;">,</span>L<span style="color: #009900;">&#93;</span> 
<span style="color: #666666; font-style: italic;"># RewriteRule ^images/icons/(.+)?$ images/icons/$1 [NC,L]</span></pre></div></div>

<p>First line in above example solved my problem and I did not need the second in my case.</p>
<p>There is problem with Browsers which don&#8217;t recognize that folders you typed are not real So there is problem with images and css style. In another case consider the following example.</p>
<p>All you have to do is mod rewrite all your image, css and js folders like below:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">RewriteRule ^pictures<span style="color: #339933;">/</span>images<span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.+</span><span style="color: #009900;">&#41;</span>?$ images<span style="color: #339933;">/</span>$<span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#91;</span>NC<span style="color: #339933;">,</span>L<span style="color: #009900;">&#93;</span>
RewriteRule ^pictures<span style="color: #339933;">/</span>css<span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.+</span><span style="color: #009900;">&#41;</span>?$ css<span style="color: #339933;">/</span>$<span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#91;</span>NC<span style="color: #339933;">,</span>L<span style="color: #009900;">&#93;</span>
RewriteRule ^pictures<span style="color: #339933;">/</span>js<span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.+</span><span style="color: #009900;">&#41;</span>?$ js<span style="color: #339933;">/</span>$<span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#91;</span>NC<span style="color: #339933;">,</span>L<span style="color: #009900;">&#93;</span>
RewriteRule ^pictures<span style="color: #339933;">/</span>php<span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.+</span><span style="color: #009900;">&#41;</span>?$ php<span style="color: #339933;">/</span>$<span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#91;</span>NC<span style="color: #339933;">,</span>L<span style="color: #009900;">&#93;</span>
RewriteRule ^pictures<span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">9</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span>?$ pictures<span style="color: #339933;">.</span>Php?year<span style="color: #339933;">=</span>$<span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#91;</span>NC<span style="color: #339933;">,</span>L<span style="color: #009900;">&#93;</span></pre></div></div>

<h4>Redirect index.php to index</h4>
<p>Okay, you have to do this with all the pages separately. In the following case I have done these with two pages. Index.php and about.php. I don&#8217;t know yet what is the solution for doing it in single line for every page.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">RewriteRule index index<span style="color: #339933;">.</span>php
RewriteRule about about<span style="color: #339933;">.</span>php</pre></div></div>

<p>so on&#8230;</p>
<p>Important: You have implemented this code in .htaccess file. Now your like for <strong>yoursite.com/about.php</strong> will be <strong>yoursite.com/about</strong>. You will have to link the text with this modified call (with no .php) and .htaccess will do the magic where you have defined the rule to change about.php to about. That&#8217;s it.</p>
<h4>Change .php URLs in .html</h4>
<p>Now this one I know. Single line of code will do the magic. You have all the pages of site in php, but after writing this single line code in .htaccess, they will be changed into .html. I mean the URLs will be changed to .html. Link your pages with .html extension and write this code in .htaccess file and you are done.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">RewriteRule ^<span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span>\<span style="color: #339933;">.</span>html$ $1<span style="color: #339933;">.</span>php <span style="color: #009900;">&#91;</span>NC<span style="color: #009900;">&#93;</span></pre></div></div>

<p>For htm do this.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">RewriteRule ^<span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span>\<span style="color: #339933;">.</span>htm$ $1<span style="color: #339933;">.</span>php <span style="color: #009900;">&#91;</span>NC<span style="color: #009900;">&#93;</span></pre></div></div>

<h4>Rewriting yoursite.com/user.php?username=xyz to yoursite.com/xyz</h4>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">RewriteRule ^<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span>zA<span style="color: #339933;">-</span>Z0<span style="color: #339933;">-</span><span style="color: #cc66cc;">9</span>_<span style="color: #339933;">-</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span>$ user<span style="color: #339933;">.</span>php?username<span style="color: #339933;">=</span>$<span style="color: #cc66cc;">1</span>
RewriteRule ^<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span>zA<span style="color: #339933;">-</span>Z0<span style="color: #339933;">-</span><span style="color: #cc66cc;">9</span>_<span style="color: #339933;">-</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span>$ user<span style="color: #339933;">.</span>php?username<span style="color: #339933;">=</span>$<span style="color: #cc66cc;">1</span></pre></div></div>

<h4>Rewriting product.php?id=12 to product/ipod-nano/12.html</h4>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">RewriteRule ^product<span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span>zA<span style="color: #339933;">-</span>Z0<span style="color: #339933;">-</span><span style="color: #cc66cc;">9</span>_<span style="color: #339933;">-</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">9</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span>\<span style="color: #339933;">.</span>html$ product<span style="color: #339933;">.</span>php?id<span style="color: #339933;">=</span>$<span style="color: #cc66cc;">2</span></pre></div></div>

<p>And change product.php?id=5 to porduct-5.html so that http://localhost/product-5.html calls product.php?id=5 automatically</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">RewriteRule ^product<span style="color: #339933;">-</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">9</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span>\<span style="color: #339933;">.</span>html$ products<span style="color: #339933;">.</span>php?id<span style="color: #339933;">=</span>$<span style="color: #cc66cc;">1</span></pre></div></div>

<p>Done&#8230;</p>
<p>Please help me learn and do more with this htaccess stuff. If you know more about this, want to correct / improve these codes or offer more advanced codes to do the same what I have mentioned above, share with me in comments.</p>
<p><a href="http://www.phpmagicbook.com/htaccess-mod-rewrite-practical-essential-important-solutions-update/">Htaccess Mod Rewrite Practical Essential Important Solutions &#8211; Update</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/daily-changing-content-or-link-throughout-month/" title="Daily Changing Content Or Link Throughout Month">Daily Changing Content Or Link Throughout Month</a></li><li><a href="http://www.phpmagicbook.com/if-statement/" title="PHP If Statement">PHP If Statement</a></li><li><a href="http://www.phpmagicbook.com/hide-ads-from-admin-at-blog/" title="Hide Ads from Admin at Blog">Hide Ads from Admin at Blog</a></li><li><a href="http://www.phpmagicbook.com/allow-htaccess-and-mod-rewrite-in-wamp/" title="Allow htaccess and Mod Rewrite in Wamp">Allow htaccess and Mod Rewrite in Wamp</a></li><li><a href="http://www.phpmagicbook.com/php-file-read/" title="PHP &#8211; File Read">PHP &#8211; File Read</a></li><li><a href="http://www.phpmagicbook.com/captcha-image-number-verification/" title="Captcha &#8211; Image And Number Verification Using PHP">Captcha &#8211; Image And Number Verification Using PHP</a></li><li><a href="http://www.phpmagicbook.com/php-javascript-based-image-gallery/" title="PHP Javascript Based Auto Populated Image Gallery">PHP Javascript Based Auto Populated Image Gallery</a></li><li><a href="http://www.phpmagicbook.com/optimize-blog-post-title-tag-for-seo/" title="Optimize Blog Post Title Tag For SEO">Optimize Blog Post Title Tag For SEO</a></li><li><a href="http://www.phpmagicbook.com/php-file-close/" title="PHP &#8211; File Close">PHP &#8211; File Close</a></li><li><a href="http://www.phpmagicbook.com/form-validation/" title="Form Validation Script">Form Validation Script</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/htaccess-mod-rewrite-practical-essential-important-solutions-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protect Hotlink the Right Way Using htaccess</title>
		<link>http://www.phpmagicbook.com/protect-hotlink-the-right-way-using-htaccess/</link>
		<comments>http://www.phpmagicbook.com/protect-hotlink-the-right-way-using-htaccess/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 00:27:51 +0000</pubDate>
		<dc:creator>King</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[hotlinking]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=505</guid>
		<description><![CDATA[Protect hotlinking the right way. There are content stealers out there who will copy your links and images and display them at their websites in result of which you pay more for bandwidth. If you do not do it the right way, you can block google and feedburner also. Here is a code to do [...]<p><a href="http://www.phpmagicbook.com/protect-hotlink-the-right-way-using-htaccess/">Protect Hotlink the Right Way Using htaccess</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Protect hotlinking the right way. There are content stealers out there who will copy your links and images and display them at their websites in result of which you pay more for bandwidth. If you do not do it the right way, you can block google and feedburner also. Here is a code to do it the right way. Any incoming direct request for your image file, zip file or rar will will display your specified image instead of that.</p>
<p><span id="more-505"></span></p>
<p>Add this code into your .htaccess file and make sure you change &#8216;yoursitename&#8217; there.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Options +FollowSymlinks
# Protect Hotlinking
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+.)?yoursitename.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?feedburner.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?feeds2.feedburner.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*.(jpe?g|gif|bmp|png|zip|rar)$ http://yoursitename.com/someimage.jpg [L]</pre></div></div>

<p><a href="http://www.phpmagicbook.com/protect-hotlink-the-right-way-using-htaccess/">Protect Hotlink the Right Way Using htaccess</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/allow-htaccess-and-mod-rewrite-in-wamp/" title="Allow htaccess and Mod Rewrite in Wamp">Allow htaccess and Mod Rewrite in Wamp</a></li><li><a href="http://www.phpmagicbook.com/htaccess-essential-tricks-for-blog-website-performance-a-guide/" title=".htaccess Essential Tricks For Blog/Website Performance &#8211; Guide">.htaccess Essential Tricks For Blog/Website Performance &#8211; Guide</a></li><li><a href="http://www.phpmagicbook.com/redirect-wordpress-rss-feeds-to-feedburner/" title="Redirect WordPress RSS Feeds to Feedburner">Redirect WordPress RSS Feeds to Feedburner</a></li><li><a href="http://www.phpmagicbook.com/force-file-download-do-not-display-open-in-browser/" title="Force File download Using PHP &#8211; Do Not Display Open In Browser onclick">Force File download Using PHP &#8211; Do Not Display Open In Browser onclick</a></li><li><a href="http://www.phpmagicbook.com/dothtaccess-hacks/" title="Essential DotHtaccess Hacks">Essential DotHtaccess Hacks</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/protect-hotlink-the-right-way-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Hide Ads from Admin at Blog</title>
		<link>http://www.phpmagicbook.com/hide-ads-from-admin-at-blog/</link>
		<comments>http://www.phpmagicbook.com/hide-ads-from-admin-at-blog/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 21:01:38 +0000</pubDate>
		<dc:creator>King</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=504</guid>
		<description><![CDATA[You can trace which user is logged in. Users at WordPress have levels for access. Admin access level is 10. You can simply trace if the admin is logged in and hide ads from your blog so that admin may not see ads. If you are admin of a blog and post a lot then [...]<p><a href="http://www.phpmagicbook.com/hide-ads-from-admin-at-blog/">Hide Ads from Admin at Blog</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p>You can trace which user is logged in. Users at WordPress have levels for access. Admin access level is 10. You can simply trace if the admin is logged in and hide ads from your blog so that admin may not see ads. If you are admin of a blog and post a lot then its a chance that you submit impressions for ads by yourself while checking your posts after publishing. More impressions but less click = less earnings. Hide your ads from you. You definitely don&#8217;t want to click your own ads, for sure. That&#8217;s why it is useful to hide your own ads from you to reduce load time + avoid impressions you do not want + more earnings.</p>
<p><span id="more-504"></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">;</span>
get_currentuserinfo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_level</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">10</span> <span style="color: #009900;">&#41;</span><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Welcome, Admin'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Welcome!'</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>OR</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">;</span> 
get_currentuserinfo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_level</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">10</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
  Admin Stuff here (leave blank)
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
  Stuff Seen By Visitors
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><a href="http://www.phpmagicbook.com/hide-ads-from-admin-at-blog/">Hide Ads from Admin at Blog</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/show-a-part-of-string-substr/" title="Show A Part Of String &#8211; substr in PHP">Show A Part Of String &#8211; substr in PHP</a></li><li><a href="http://www.phpmagicbook.com/browser-check-with-php/" title="Browser Check With PHP">Browser Check With PHP</a></li><li><a href="http://www.phpmagicbook.com/find-page-url-php/" title="Find Page URL With PHP &#8211; File Path">Find Page URL With PHP &#8211; File Path</a></li><li><a href="http://www.phpmagicbook.com/php-for-each-loop/" title="PHP ForEach Loop">PHP ForEach Loop</a></li><li><a href="http://www.phpmagicbook.com/php-cookies-create/" title="Creating And Retrieving Cookies In PHP">Creating And Retrieving Cookies In PHP</a></li><li><a href="http://www.phpmagicbook.com/quiz-switch-if-else/" title="Quiz &#8211; Switch &#8211; If Else in PHP">Quiz &#8211; Switch &#8211; If Else in PHP</a></li><li><a href="http://www.phpmagicbook.com/date-and-time-in-php/" title="Date And Time Scripts In PHP">Date And Time Scripts In PHP</a></li><li><a href="http://www.phpmagicbook.com/sending-email-with-php/" title="Sending eMail Using PHP">Sending eMail Using PHP</a></li><li><a href="http://www.phpmagicbook.com/find-path-of-file-at-server-using-php/" title="Find Path Of File At Server Using PHP">Find Path Of File At Server Using PHP</a></li><li><a href="http://www.phpmagicbook.com/for-loop/" title="For Loop in PHP">For Loop in PHP</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/hide-ads-from-admin-at-blog/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Change Default WordPress Gravatar in Comments</title>
		<link>http://www.phpmagicbook.com/change-default-wordpress-gravatar-in-comments/</link>
		<comments>http://www.phpmagicbook.com/change-default-wordpress-gravatar-in-comments/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 20:52:20 +0000</pubDate>
		<dc:creator>King</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=501</guid>
		<description><![CDATA[If you use a plugin to add avatars to your blog, there might be a setting in the plugin’s options page for choosing the default avatar. If you use WordPress 2.5+, then you probably use a template tag like the following for your avatars.

&#60;?php echo get_avatar&#40; $comment, 32 &#41;; ?&#62;

You can easily modify this code [...]<p><a href="http://www.phpmagicbook.com/change-default-wordpress-gravatar-in-comments/">Change Default WordPress Gravatar in Comments</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p>If you use a plugin to add avatars to your blog, there might be a setting in the plugin’s options page for choosing the default avatar. If you use WordPress 2.5+, then you probably use a template tag like the following for your avatars.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_avatar<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">32</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>You can easily modify this code to show a default customized gravatar to appear if the comment author has no gravater to show.</p>
<p><span id="more-501"></span></p>
<p>Just add a comma after the 32 (The pixel size of the image, if you want to change that while you’re at it!), and paste in the URL to your image. e.g.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_avatar<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">80</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://www.yourblogaddress.com/my-gravatar.jpg'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Now the comments on your posts will have a much nicer image that draws less attention, promotes recognition of your logo, and as so few blogs have a unique default avatar, it shows your attention to detail.</p>
<p><a href="http://www.phpmagicbook.com/change-default-wordpress-gravatar-in-comments/">Change Default WordPress Gravatar in Comments</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/php-photo-slide-show/" title="Auto Create PHP Photo Slide Show Using PHP">Auto Create PHP Photo Slide Show Using PHP</a></li><li><a href="http://www.phpmagicbook.com/adding-record-in-database/" title="Adding Record In Database Using PHP">Adding Record In Database Using PHP</a></li><li><a href="http://www.phpmagicbook.com/find-path-of-file-at-server-using-php/" title="Find Path Of File At Server Using PHP">Find Path Of File At Server Using PHP</a></li><li><a href="http://www.phpmagicbook.com/date-and-time-in-php/" title="Date And Time Scripts In PHP">Date And Time Scripts In PHP</a></li><li><a href="http://www.phpmagicbook.com/enable-gravataravatar-at-your-website-gravatar-image-php-script/" title="Enable Gravatar/Avatar at Your Website &#8211; Gravatar Image PHP Script">Enable Gravatar/Avatar at Your Website &#8211; Gravatar Image PHP Script</a></li><li><a href="http://www.phpmagicbook.com/force-file-download-do-not-display-open-in-browser/" title="Force File download Using PHP &#8211; Do Not Display Open In Browser onclick">Force File download Using PHP &#8211; Do Not Display Open In Browser onclick</a></li><li><a href="http://www.phpmagicbook.com/sending-email-with-php/" title="Sending eMail Using PHP">Sending eMail Using PHP</a></li><li><a href="http://www.phpmagicbook.com/php-photo-slide-show-with-drop-down/" title="PHP Photo Slide Show With Drop Down">PHP Photo Slide Show With Drop Down</a></li><li><a href="http://www.phpmagicbook.com/random-flash-swf-onload-php-script/" title="Random Flash SWF Onload PHP Script">Random Flash SWF Onload PHP Script</a></li><li><a href="http://www.phpmagicbook.com/php-arrays/" title="PHP Arrays">PHP Arrays</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/change-default-wordpress-gravatar-in-comments/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Only Allow Your IP to Access Website or Blog Admin</title>
		<link>http://www.phpmagicbook.com/only-allow-your-ip-to-access-website-or-blog-admin/</link>
		<comments>http://www.phpmagicbook.com/only-allow-your-ip-to-access-website-or-blog-admin/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 20:35:57 +0000</pubDate>
		<dc:creator>King</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=503</guid>
		<description><![CDATA[If you are the only owner of any website or blog and want to protect your admin directory then you can allow that admin directory for just your IP and deny from all others. Here it is how.


# just allow my computer and my IP to access admin of this site
order deny,allow
deny from all
allow from [...]<p><a href="http://www.phpmagicbook.com/only-allow-your-ip-to-access-website-or-blog-admin/">Only Allow Your IP to Access Website or Blog Admin</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p>If you are the only owner of any website or blog and want to protect your admin directory then you can allow that admin directory for just your IP and deny from all others. Here it is how.</p>
<p><span id="more-503"></span></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># just allow my computer and my IP to access admin of this site
order deny,allow
deny from all
allow from xxx.xx.x.xxx</pre></div></div>

<p>Where xxxxx digits will contain your IP address. This example will work if you use a static IP. You can check your IP from <a rel="nofollow" target="_blank" href="http://www.techmynd.com/tools/ip-address-locator.php">here</a>.</p>
<p><a href="http://www.phpmagicbook.com/only-allow-your-ip-to-access-website-or-blog-admin/">Only Allow Your IP to Access Website or Blog Admin</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/advanced-form-validation-by-message-no-alert-dialogue-box/" title="Advanced Form Validation and Displaying Error Message &#8211; No Alert Dialogue Box">Advanced Form Validation and Displaying Error Message &#8211; No Alert Dialogue Box</a></li><li><a href="http://www.phpmagicbook.com/enable-gravataravatar-at-your-website-gravatar-image-php-script/" title="Enable Gravatar/Avatar at Your Website &#8211; Gravatar Image PHP Script">Enable Gravatar/Avatar at Your Website &#8211; Gravatar Image PHP Script</a></li><li><a href="http://www.phpmagicbook.com/remove-ads-for-registered-users-or-admin-on-wordpress-blog/" title="Remove Ads for Registered Users or Admin on WordPress Blog">Remove Ads for Registered Users or Admin on WordPress Blog</a></li><li><a href="http://www.phpmagicbook.com/php-referrer-http-referrer/" title="PHP Referrer &#8211; HTTP Referrer">PHP Referrer &#8211; HTTP Referrer</a></li><li><a href="http://www.phpmagicbook.com/simple-math/" title="Simple Math in PHP">Simple Math in PHP</a></li><li><a href="http://www.phpmagicbook.com/upload-image-and-create-thumbnail/" title="Upload Image And Create Thumbnail Using PHP">Upload Image And Create Thumbnail Using PHP</a></li><li><a href="http://www.phpmagicbook.com/php-logical-operators/" title="PHP Logical Operators">PHP Logical Operators</a></li><li><a href="http://www.phpmagicbook.com/remove-comments-section-from-your-wordpress-blog/" title="Remove Comments Section From Your WordPress Blog">Remove Comments Section From Your WordPress Blog</a></li><li><a href="http://www.phpmagicbook.com/prefix/" title="Prefix in PHP">Prefix in PHP</a></li><li><a href="http://www.phpmagicbook.com/protect-hotlink-the-right-way-using-htaccess/" title="Protect Hotlink the Right Way Using htaccess">Protect Hotlink the Right Way Using htaccess</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/only-allow-your-ip-to-access-website-or-blog-admin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Hide WordPress WP-Admin Login Page</title>
		<link>http://www.phpmagicbook.com/hide-wordpress-wp-admin-login-page/</link>
		<comments>http://www.phpmagicbook.com/hide-wordpress-wp-admin-login-page/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 20:20:05 +0000</pubDate>
		<dc:creator>King</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=502</guid>
		<description><![CDATA[Here is a code which you can use to hide your wp-admin screen. Change YOURSECRETWORDHERE to something else. It can be any word you want. Just make sure it&#8217;s unique and somewhat long. Make it, like, your pets name or something random. Change ADMINFOLDER to the new folder name you want. Letters, numbers, underscores, and [...]<p><a href="http://www.phpmagicbook.com/hide-wordpress-wp-admin-login-page/">Hide WordPress WP-Admin Login Page</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Here is a code which you can use to hide your wp-admin screen. Change YOURSECRETWORDHERE to something else. It can be any word you want. Just make sure it&#8217;s unique and somewhat long. Make it, like, your pets name or something random. Change ADMINFOLDER to the new folder name you want. Letters, numbers, underscores, and dashes only. That ^ in front of it is on purpose. Don&#8217;t delete that. Back up your original .htaccess file before making any changes. I am not responsible for any mess up.</p>
<p><span id="more-502"></span></p>
<p><4>.htaccess Code</h4>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">RewriteEngine On
RewriteBase / 
##### ABOVE THIS POINT IS ALREADY INSERTED BY WORD PRESS
##### Michi’s code is BELOW #####
RewriteCond %{REQUEST_URI} wp-admin/
RewriteCond %{QUERY_STRING} !YOURSECRETWORDHERE
RewriteRule .*.php [F,L]
RewriteCond %{QUERY_STRING} !YOURSECRETWORDHERE
RewriteRule ^ADMINFOLDER/(.*) wp-admin/$1?%{QUERY_STRING}&amp;YOURSECRETWORDHERE [L]
##### Michi’s code is ABOVE #####
##### BELOW THIS POINT IS ALREADY INSERTED BY WORD PRESS
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]</pre></div></div>

<p><a href="http://www.phpmagicbook.com/hide-wordpress-wp-admin-login-page/">Hide WordPress WP-Admin Login Page</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/php-file-write/" title="PHP &#8211; File Write">PHP &#8211; File Write</a></li><li><a href="http://www.phpmagicbook.com/dynamic-random-number/" title="Dynamic Random Number Generation Using PHP">Dynamic Random Number Generation Using PHP</a></li><li><a href="http://www.phpmagicbook.com/hide-ads-from-admin-at-blog/" title="Hide Ads from Admin at Blog">Hide Ads from Admin at Blog</a></li><li><a href="http://www.phpmagicbook.com/htaccess-mod-rewrite-practical-essential-important-solutions-update/" title="Htaccess Mod Rewrite Practical Essential Important Solutions &#8211; Update">Htaccess Mod Rewrite Practical Essential Important Solutions &#8211; Update</a></li><li><a href="http://www.phpmagicbook.com/local-and-remote-ip-address/" title="Local And Remote IP Address">Local And Remote IP Address</a></li><li><a href="http://www.phpmagicbook.com/show-a-part-of-string-substr/" title="Show A Part Of String &#8211; substr in PHP">Show A Part Of String &#8211; substr in PHP</a></li><li><a href="http://www.phpmagicbook.com/header-redirect-location/" title="Header Redirect Location in PHP">Header Redirect Location in PHP</a></li><li><a href="http://www.phpmagicbook.com/php-easy-most-database-connection/" title="PHP Easy Most Database Connection">PHP Easy Most Database Connection</a></li><li><a href="http://www.phpmagicbook.com/simple-text-based-hit-counter-for-static-html-pages/" title="Simple Text Based Hit Counter For Static HTML Pages">Simple Text Based Hit Counter For Static HTML Pages</a></li><li><a href="http://www.phpmagicbook.com/upload-image-and-create-thumbnail/" title="Upload Image And Create Thumbnail Using PHP">Upload Image And Create Thumbnail Using PHP</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/hide-wordpress-wp-admin-login-page/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Enable Gravatar/Avatar at Your Website &#8211; Gravatar Image PHP Script</title>
		<link>http://www.phpmagicbook.com/enable-gravataravatar-at-your-website-gravatar-image-php-script/</link>
		<comments>http://www.phpmagicbook.com/enable-gravataravatar-at-your-website-gravatar-image-php-script/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 09:37:06 +0000</pubDate>
		<dc:creator>King</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Useful Scripts]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[displaypic]]></category>
		<category><![CDATA[gravatar]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[social]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=499</guid>
		<description><![CDATA[You might have already created an account at gravatar (Globally Recognized Avatars) and enjoying your display picture or avatar at forums and blogs when you just post your comment with your email and there you are &#8212; it displays your avatar along with your comment. If you are a developer and you create websites &#8211; [...]<p><a href="http://www.phpmagicbook.com/enable-gravataravatar-at-your-website-gravatar-image-php-script/">Enable Gravatar/Avatar at Your Website &#8211; Gravatar Image PHP Script</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.phpmagicbook.com/wp-content/uploads/2009/10/gravatar.png" alt="gravatar" title="gravatar" width="200" height="44" class="alignright size-full wp-image-500" />You might have already created an account at <a rel="nofollow" target="_blank" href="http://en.gravatar.com/">gravatar</a> (Globally Recognized Avatars) and enjoying your display picture or avatar at forums and blogs when you just post your comment with your email and there you are &#8212; it displays your avatar along with your comment. If you are a developer and you create websites &#8211; PHP websites &#8211; and wondering how you can enable gravatars / avatars in your next project then here is very easy to use working solution &#8211; PHP script to enable gravatar at your PHP website / blog / forum / project.</p>
<p><span id="more-499"></span></p>
<p>Copy the following code. Paste it in a file, save it in PHP extension, upload it or use it at localhost &#8211; just change the <strong>usersEmail</strong> value to your email address, if you are already at gravatars website and hit it. Other instructions for customization of script &#8211; you can find in the script. e.g. size of gravatar, default image, rating etc.</p>
<h4>Gravatars PHP Script for Your Website</h4>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// The users email, passed to Gravatar</span>
<span style="color: #000088;">$usersEmail</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;myemail@live.com&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// default avatar to load if Gravatar doesn't find one</span>
<span style="color: #000088;">$defaultImage</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://domain.com/default.png&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// The size of the image</span>
<span style="color: #000088;">$avatarSize</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;50&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Minimum rating for your site</span>
<span style="color: #666666; font-style: italic;">// Possible values (G, PG, R, X)</span>
<span style="color: #000088;">$avatarRating</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;G&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Border around the image</span>
<span style="color: #000088;">$avatarBorder</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;000000&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// URL for Gravatar</span>
<span style="color: #000088;">$gravatarURL</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://www.gravatar.com/avatar.php?gravatar_id=<span style="color: #009933; font-weight: bold;">%s</span>&amp;default=<span style="color: #009933; font-weight: bold;">%s</span>&amp;size=<span style="color: #009933; font-weight: bold;">%s</span>&amp;border=<span style="color: #009933; font-weight: bold;">%s</span>&amp;rating=<span style="color: #009933; font-weight: bold;">%s</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$avatarURL</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sprintf</span>
<span style="color: #009900;">&#40;</span>
	<span style="color: #000088;">$gravatarURL</span><span style="color: #339933;">,</span>
	<span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$usersEmail</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #000088;">$defaultImage</span><span style="color: #339933;">,</span>
	<span style="color: #000088;">$avatarSize</span><span style="color: #339933;">,</span>
	<span style="color: #000088;">$avatarBorder</span><span style="color: #339933;">,</span>
	<span style="color: #000088;">$avatarRating</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">print</span> <span style="color: #0000ff;">&quot;&lt;img src=&quot;</span><span style="color: #0000ff;">&quot; .
	<span style="color: #006699; font-weight: bold;">$avatarURL</span> . &quot;</span><span style="color: #0000ff;">&quot; width=&quot;</span><span style="color: #0000ff;">&quot; .
	<span style="color: #006699; font-weight: bold;">$avatarSize</span> . &quot;</span><span style="color: #0000ff;">&quot; height=&quot;</span><span style="color: #0000ff;">&quot; .
	<span style="color: #006699; font-weight: bold;">$avatarSize</span> . &quot;</span><span style="color: #0000ff;">&quot; /&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><a href="http://www.phpmagicbook.com/enable-gravataravatar-at-your-website-gravatar-image-php-script/">Enable Gravatar/Avatar at Your Website &#8211; Gravatar Image PHP Script</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/text-to-image-using-php/" title="Text To Image Using PHP">Text To Image Using PHP</a></li><li><a href="http://www.phpmagicbook.com/captcha-image-number-verification/" title="Captcha &#8211; Image And Number Verification Using PHP">Captcha &#8211; Image And Number Verification Using PHP</a></li><li><a href="http://www.phpmagicbook.com/random-single-image-onload/" title="Random Single Image Onload Using PHP">Random Single Image Onload Using PHP</a></li><li><a href="http://www.phpmagicbook.com/php-javascript-based-image-gallery/" title="PHP Javascript Based Auto Populated Image Gallery">PHP Javascript Based Auto Populated Image Gallery</a></li><li><a href="http://www.phpmagicbook.com/display-images-from-folder/" title="Auto Display Images From Folder Using PHP">Auto Display Images From Folder Using PHP</a></li><li><a href="http://www.phpmagicbook.com/random-single-image-display-on-page-reload/" title="Random Single Image Display On Page Reload Using PHP">Random Single Image Display On Page Reload Using PHP</a></li><li><a href="http://www.phpmagicbook.com/php-photo-slide-show/" title="Auto Create PHP Photo Slide Show Using PHP">Auto Create PHP Photo Slide Show Using PHP</a></li><li><a href="http://www.phpmagicbook.com/image-gallery/" title="Auto Create Image Gallery from Folder Using PHP">Auto Create Image Gallery from Folder Using PHP</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/enable-gravataravatar-at-your-website-gravatar-image-php-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allow htaccess and Mod Rewrite in Wamp</title>
		<link>http://www.phpmagicbook.com/allow-htaccess-and-mod-rewrite-in-wamp/</link>
		<comments>http://www.phpmagicbook.com/allow-htaccess-and-mod-rewrite-in-wamp/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 09:19:26 +0000</pubDate>
		<dc:creator>King</dc:creator>
				<category><![CDATA[Mod Rewrite]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[modrewrite]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[wamp]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=498</guid>
		<description><![CDATA[You must enable mod_rewrite before you can use it. If you want to enable it in httpd.conf, then use 
Options FollowSymLinks Fileinfo
or
Options SymLinksIfOwnerMatch Fileinfo
If you wish to enable mod_rewrite at the .htaccess level (i.e. only in certain (sub)directories within each vHost and not for all (sub)directories of each vHost), then you must set allowOverride Options [...]<p><a href="http://www.phpmagicbook.com/allow-htaccess-and-mod-rewrite-in-wamp/">Allow htaccess and Mod Rewrite in Wamp</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p>You must enable mod_rewrite before you can use it. If you want to enable it in httpd.conf, then use </p>
<p>Options FollowSymLinks Fileinfo<br />
or<br />
Options SymLinksIfOwnerMatch Fileinfo</p>
<p>If you wish to enable mod_rewrite at the .htaccess level (i.e. only in certain (sub)directories within each vHost and not for all (sub)directories of each vHost), then you must set allowOverride Options (at a minimum) in httpd.conf, and place one of </p>
<p>Options +FollowSymLinks<br />
or<br />
Options +SymLinksIfOwnerMatch </p>
<p>in the .htaccess file(s) to enable mod_rewrite.</p>
<p><span id="more-498"></span></p>
<p>In the latter case, it is usual to set Options Fileinfo (and any others) in httpd.conf, and then set Options +FollowSymLinks in .htaccess along with +/-indexes, +/-MultiViews, etc. as desired. Take a look at the +/- add/subtract option syntax versus fixed Option declarations &#8212; You&#8217;ll likely want to establish fixed baseline Options in httpd.conf, and then use the add/subtract syntax at the .htaccess level. For security, don&#8217;t enable any Option unless you&#8217;re sure you need it.</p>
<p>If you did not get any clue what the crap was just above, just ignore it and do the following.</p>
<p>Go to <strong>Wamp</strong> -> Left click at icon in the taskbar -> Click <strong>Config files</strong> -> <strong>httpd.conf</strong><br />
A file will be opened.<br />
Search rewrite in it.<br />
You will get:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">#LoadModule rewrite_module modules/mod_rewrite.so</pre></div></div>

<p>Remove hash from the beginning (Uncomment it) e.g.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">LoadModule rewrite_module modules/mod_rewrite.so</pre></div></div>

<p>Save the file. Mod Rewriting is enabled.</p>
<p>Open Notepad or Textpad or Dtreamweaver.<br />
Create new file.<br />
Save it as <strong>.htaccess</strong> in the required directory or root directory of website.<br />
Copy and paste the following in it.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Options +FollowSymLinks
RewriteEngine On</pre></div></div>

<p>And you are done. Use this .htacces file now to code onward and it will work.<br />
The above, when you uncommented the rewrite thing, you enabled mod-rewrite in wamp.</p>
<p>This case is important when there is involvement of redirecting and the use of .htaccess file at localhost. e.g. When you use WordPress at localhost for development purpose, then this method to allow .htaccess file and mod-rewrite for wamp is good. Its GoOoOOoOooD!</p>
<p><a href="http://www.phpmagicbook.com/allow-htaccess-and-mod-rewrite-in-wamp/">Allow htaccess and Mod Rewrite in Wamp</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/protect-hotlink-the-right-way-using-htaccess/" title="Protect Hotlink the Right Way Using htaccess">Protect Hotlink the Right Way Using htaccess</a></li><li><a href="http://www.phpmagicbook.com/customizing-wordpress-tags-cloud-a-guide/" title="Customizing WordPress Tags Cloud &#8211; A Guide">Customizing WordPress Tags Cloud &#8211; A Guide</a></li><li><a href="http://www.phpmagicbook.com/htaccess-essential-tricks-for-blog-website-performance-a-guide/" title=".htaccess Essential Tricks For Blog/Website Performance &#8211; Guide">.htaccess Essential Tricks For Blog/Website Performance &#8211; Guide</a></li><li><a href="http://www.phpmagicbook.com/redirect-wordpress-rss-feeds-to-feedburner/" title="Redirect WordPress RSS Feeds to Feedburner">Redirect WordPress RSS Feeds to Feedburner</a></li><li><a href="http://www.phpmagicbook.com/force-file-download-do-not-display-open-in-browser/" title="Force File download Using PHP &#8211; Do Not Display Open In Browser onclick">Force File download Using PHP &#8211; Do Not Display Open In Browser onclick</a></li><li><a href="http://www.phpmagicbook.com/dothtaccess-hacks/" title="Essential DotHtaccess Hacks">Essential DotHtaccess Hacks</a></li><li><a href="http://www.phpmagicbook.com/php-local-servers-download/" title="PHP &#8211; Local Servers Download">PHP &#8211; Local Servers Download</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/allow-htaccess-and-mod-rewrite-in-wamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Script Not Working &#8211; Solution</title>
		<link>http://www.phpmagicbook.com/php-script-not-working-solution/</link>
		<comments>http://www.phpmagicbook.com/php-script-not-working-solution/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 11:52:52 +0000</pubDate>
		<dc:creator>King</dc:creator>
				<category><![CDATA[Post & Get]]></category>
		<category><![CDATA[essentials]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[troubleshoot]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=435</guid>
		<description><![CDATA[Ever wondered that most of the PHP scripts you download, do not do anything. I mean you downloaded the PHP script, uploaded at your host or copied at localhost and when you run it, it will not display results. In most cases it happens. One reason might be that the script is not properly written. [...]<p><a href="http://www.phpmagicbook.com/php-script-not-working-solution/">PHP Script Not Working &#8211; Solution</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Ever wondered that most of the PHP scripts you download, do not do anything. I mean you downloaded the PHP script, uploaded at your host or copied at localhost and when you run it, it will not display results. In most cases it happens. One reason might be that the script is not properly written. But the fact is, scripts are written correctly in most cases. The problem is that the developers miss something very important in most cases. Next time you download scripts, those should run if you follow this instruction I am going to tell you.</p>
<p><span id="more-435"></span></p>
<p>Some PHP developers write code with <strong>Globals On</strong>. </p>
<p>Left click wamp icon -> <strong>config files -> php.ini</strong></p>
<p>When its open, search for <strong>register_globals</strong></p>
<p>These must be Off by default e.g.<br />
<strong>register_globals = Off</strong></p>
<p>Many developers were used to program in environment of On Globals. This makes programming easier but this method is vulnerable and security risk. You do not have to get variables which you post at the new page where PHP does something in case of Globals On. Sometimes developers still do the same thing.</p>
<p>This is not recommended.</p>
<p><strong>Globals should be off in PHP.ini and scripts should work while Globals are off.</strong></p>
<p>So the reason is obvious. Many scripts you download, you will see do not get variables when these are posted. Those are programmed in environment of Globals On (Easy way PHP Coding).</p>
<p>Next time you download a script and if that is not working, check that Variables are being requested after when these are posted or not.</p>
<h4>What to Do</h4>
<p>Suppose someone posts a form with his <strong>name</strong> and <strong>email</strong> with variables <strong>txtName</strong> and <strong>txtEmail</strong> which are text input names. txtName and txtEmail should be requested at the next PHP page. If these are not being called, then you will get Null result which will be empty.</p>
<p>Request these variables in the following manner at the next page at the top of everything where PHP code starts. In case of above example:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$txtName</span><span style="color: #339933;">=</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;txtName&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$txtEmail</span><span style="color: #339933;">=</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;txtEmail&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Now $txtName contains the name of user and $txtEmail contains the email and you can use these further. When some PHP script is not working, always see that if these variables are being requested by this manner at the next page? If not you can get every variable like this and the script will be working in most cases. You can also use $_Post instead of $_REQUEST.</p>
<p>Another reason is not using proper PHP starting tag.</p>
<h4>Wrong Tag</h4>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span></pre></div></div>

<h4>Correct Usage of PHP Tag</h4>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></pre></div></div>

<p>Some servers will output errors if you do not use proper PHP starting tag.</p>
<p>Also read <a href="http://www.phpmagicbook.com/php-post-and-get/">Post and Get</a> if this is not clear.</p>
<p><a href="http://www.phpmagicbook.com/php-script-not-working-solution/">PHP Script Not Working &#8211; Solution</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/php-arrays/" title="PHP Arrays">PHP Arrays</a></li><li><a href="http://www.phpmagicbook.com/daily-changing-content-or-link-throughout-month/" title="Daily Changing Content Or Link Throughout Month">Daily Changing Content Or Link Throughout Month</a></li><li><a href="http://www.phpmagicbook.com/if-statement/" title="PHP If Statement">PHP If Statement</a></li><li><a href="http://www.phpmagicbook.com/confirm-form-variables-post-before-script-execution/" title="Confirm Form Variables Post Before Script Execution">Confirm Form Variables Post Before Script Execution</a></li><li><a href="http://www.phpmagicbook.com/php-photo-slide-show/" title="Auto Create PHP Photo Slide Show Using PHP">Auto Create PHP Photo Slide Show Using PHP</a></li><li><a href="http://www.phpmagicbook.com/number-validation/" title="Number Validation in Forms">Number Validation in Forms</a></li><li><a href="http://www.phpmagicbook.com/input-output/" title="Input Output in PHP">Input Output in PHP</a></li><li><a href="http://www.phpmagicbook.com/captcha-random-image-form-validation/" title="Captcha &#8211; Random Image Form Validation Using PHP">Captcha &#8211; Random Image Form Validation Using PHP</a></li><li><a href="http://www.phpmagicbook.com/tell-a-friend-php-referrer-recommend-site-script/" title="Tell A Friend PHP Referrer &#8211; Recommend Site Script">Tell A Friend PHP Referrer &#8211; Recommend Site Script</a></li><li><a href="http://www.phpmagicbook.com/smarty-for-smart-developers/" title="Smarty For Smart Developers">Smarty For Smart Developers</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/php-script-not-working-solution/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Customizing WordPress Tags Cloud &#8211; A Guide</title>
		<link>http://www.phpmagicbook.com/customizing-wordpress-tags-cloud-a-guide/</link>
		<comments>http://www.phpmagicbook.com/customizing-wordpress-tags-cloud-a-guide/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 22:16:11 +0000</pubDate>
		<dc:creator>King</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=389</guid>
		<description><![CDATA[
If you have already used some social networking website or you are a blogger then you definitely know what the tags are. WordPress offers Tags Cloud which can be customized the way you use it at your blog. By default WP Tag Cloud will generate limited number of tags in alphabetical order. Custom templates for [...]<p><a href="http://www.phpmagicbook.com/customizing-wordpress-tags-cloud-a-guide/">Customizing WordPress Tags Cloud &#8211; A Guide</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.phpmagicbook.com/wp-content/uploads/2009/02/tags-cloud.jpg" alt="tags-cloud" title="tags-cloud" width="500" height="300" class="alignnone size-full wp-image-390" /></p>
<p>If you have already used some social networking website or you are a blogger then you definitely know what the tags are. WordPress offers Tags Cloud which can be customized the way you use it at your blog. By default WP Tag Cloud will generate limited number of tags in alphabetical order. Custom templates for tags can be made which means that you can have a full page of tags as you want it. Look at the <a href="http://www.phpmagicbook.com/404/" target="_blank">404 page of phpmagicbook</a>. I have used tags to give the users some more options to browse if he gets distracted by &#8216;page not found error&#8217;. I was thinking to give my users all tags option to click at any one. Okay now this is just one use. You can have your own customized tags page which can contain just tags and nothing more. We explore some ways about how we can customize tags/tags template/tags page at our WordPress blog.</p>
<p><span id="more-389"></span></p>
<h4>Default Tags Cloud</h4>
<p>Paste the following code anywhere in your blog theme&#8217;s template files (e.g. 404 page, single post page etc.) to see default tags cloud in action:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_tag_cloud'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
wp_tag_cloud<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h4>Display All Tags</h4>
<p>Following code will give you all the WordPress tags which you have used in your blog.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_tag_cloud'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
wp_tag_cloud<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'number=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h4>Define Custom Font Size in Tags Cloud</h4>
<p>Following code will determine the smallest and largest size in your tags cloud.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_tag_cloud'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
wp_tag_cloud<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'smallest=8&amp;largest=22'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h4>Random Ordered Tags Cloud</h4>
<p>Following code will generate random tags cloud which will not be in alphabetical order.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_tag_cloud'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
wp_tag_cloud<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'order=RAND'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h4>Tags Cloud Limited in Size &#038; Ordered by Number of Posts</h4>
<p>Following code will generate custom font sized tags cloud ordered by post frequency under a specific tag.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_tag_cloud'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
wp_tag_cloud<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'smallest=8&amp;largest=22&amp;number=30&amp;orderby=count'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h4>Tags Cloud Format</h4>
<p>You can format Tags Cloud in <strong>flat</strong> (Default) format &#8211; separated by whitespace, <strong>list</strong> format and <strong>array</strong> format by using following method:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_tag_cloud'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
wp_tag_cloud<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'format=list'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>And there is ASC (Default), DESC and RAND order for Tags display order.<br />
Exclude and Include option to exclude and include tags and more&#8230;</p>
<h4>Mixing Things Up</h4>
<p>And finally with a bit of a magic you can add the bits and bytes into a full story of customized Tags Cloud for your own blog. A possible combination of code and example:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_tag_cloud'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
wp_tag_cloud<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'smallest=8&amp;largest=22&amp;unit=pt&amp;number=50&amp;format=flat&amp;orderby=name&amp;order=ASC&amp;exclude=garbagetag&amp;include=mytag'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Example: Browse Ajax Rain&#8217;s tags page to view the full tags option in action.</p>
<p><a rel="nofollow" target="_blank" href="http://www.ajaxrain.com/tagcloud.php" target="_blank"><img src="http://www.phpmagicbook.com/wp-content/uploads/2009/02/ajax-rain-tags-cloud.jpg" alt="ajax-rain-tags-cloud" title="ajax-rain-tags-cloud" width="500" height="400" class="alignnone size-full wp-image-391" /></a></p>
<p>WordPress has got complete guide about how you can create custom tags cloud page template or how you can customize tags cloud at your blog in a number of ways. Give it a try.</p>
<p><a rel="nofollow" target="_blank" href="http://codex.wordpress.org/Template_Tags/wp_tag_cloud" target="_blank"><img src="http://www.phpmagicbook.com/wp-content/uploads/2009/02/template-tags-resources.jpg" alt="template-tags-resources" title="template-tags-resources" width="500" height="424" class="alignnone size-full wp-image-392" /></a></p>
<p>Have your say! Do you like to customize Tags Cloud at your blog or this is not a necessary part?</p>
<p><a href="http://www.phpmagicbook.com/customizing-wordpress-tags-cloud-a-guide/">Customizing WordPress Tags Cloud &#8211; A Guide</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/how-to-include-specific-file-in-wordpress-blog-template/" title="How to Include Specific File In WordPress Blog Template">How to Include Specific File In WordPress Blog Template</a></li><li><a href="http://www.phpmagicbook.com/how-to-display-some-content-at-homepage-single-post-of-blog/" title="How To Display Some Content at Just Home Page and Single Post of Blog">How To Display Some Content at Just Home Page and Single Post of Blog</a></li><li><a href="http://www.phpmagicbook.com/display-rss-feed-from-any-blog-on-your-wordpress-blog/" title="Display RSS Feed From Any Blog on Your WordPress Blog">Display RSS Feed From Any Blog on Your WordPress Blog</a></li><li><a href="http://www.phpmagicbook.com/provide-rss-feed-for-each-post-and-comment-at-your-wordpress-blog/" title="Provide RSS Feed for Each Post and Comment at Your WordPress Blog">Provide RSS Feed for Each Post and Comment at Your WordPress Blog</a></li><li><a href="http://www.phpmagicbook.com/remove-ads-for-registered-users-or-admin-on-wordpress-blog/" title="Remove Ads for Registered Users or Admin on WordPress Blog">Remove Ads for Registered Users or Admin on WordPress Blog</a></li><li><a href="http://www.phpmagicbook.com/remove-comments-section-from-your-wordpress-blog/" title="Remove Comments Section From Your WordPress Blog">Remove Comments Section From Your WordPress Blog</a></li><li><a href="http://www.phpmagicbook.com/insert-adsense-after-the-first-post-in-your-wordpress-blog/" title="Insert Adsense After the First Post in Your WordPress Blog">Insert Adsense After the First Post in Your WordPress Blog</a></li><li><a href="http://www.phpmagicbook.com/redirect-ugly-permalink-to-postname/" title="Redirect Ugly Permalink to Postname">Redirect Ugly Permalink to Postname</a></li><li><a href="http://www.phpmagicbook.com/optimize-blog-post-title-tag-for-seo/" title="Optimize Blog Post Title Tag For SEO">Optimize Blog Post Title Tag For SEO</a></li><li><a href="http://www.phpmagicbook.com/how-to-get-most-commented-posts-of-the-week-for-your-wordpress-blog/" title="How to Get Most Commented Posts of the Week for your WordPress Blog">How to Get Most Commented Posts of the Week for your WordPress Blog</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/customizing-wordpress-tags-cloud-a-guide/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 5.067 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-13 11:48:31 -->
<!-- Compression = gzip -->