<?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 &#187; image</title>
	<atom:link href="http://www.phpmagicbook.com/tag/image/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>Tue, 15 Jun 2010 13:22:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<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>Hiroshi</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>Text To Image Using PHP</title>
		<link>http://www.phpmagicbook.com/text-to-image-using-php/</link>
		<comments>http://www.phpmagicbook.com/text-to-image-using-php/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 19:58:52 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Image Handling]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Spam Control]]></category>
		<category><![CDATA[Useful Scripts]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=215</guid>
		<description><![CDATA[Suppose you want to protect you email address and want to put it online in form of image or you are displaying visitors emails in form of images while they had entered simple text, then this script is very useful. Text used in this example is my-email@hotmail.com under variable text. Find it and replace it [...]<p><a href="http://www.phpmagicbook.com/text-to-image-using-php/">Text To Image Using PHP</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>Suppose you want to protect you email address and want to put it online in form of image or you are displaying visitors emails in form of images while they had entered simple text, then this script is very useful. Text used in this example is my-email@hotmail.com under variable text. Find it and replace it or give input by a form and have image version of your entered text.</p>
<p><span id="more-265"></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: #666666; font-style: italic;">/* NOTE: This code assumes that you have the GD 2 Library installed on your php server and that all goes well.
It does not contain any error handling.
*/</span>
    	<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Expires: Mon, 26 Jul 1997 05:00:00 GMT&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Cache-Control: no-cache&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// dont cache</span>
    	<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Pragma: no-cache&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// dont cache again, for whatever reason, I forget.</span>
    	<span style="color: #666666; font-style: italic;">// Above headers are to prevent cache of</span>
    	<span style="color: #666666; font-style: italic;">// the image so that changes will be seen immediately.</span>
    	<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-Type: image/jpeg&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Specify that we are outputting a jpeg image.</span>
    	<span style="color: #000088;">$padding</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Padding: Distance from edges of image to text. Much like the padding property in CSS</span>
    	<span style="color: #000088;">$font</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Define The Font. Can be integers 1 through 5 or can be imageloadfont(imagefont.gdf).</span>
    	<span style="color: #666666; font-style: italic;">// Must Be A PHP Font (*.gdf) for this script to work properly.</span>
    	<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;my-email@hotmail.com&quot;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Define The Text On The Image</span>
    	<span style="color: #000088;">$height</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagefontheight</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$font</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$padding</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Sets Height Of Image</span>
    	<span style="color: #000088;">$width</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagefontwidth</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$font</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$padding</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Sets Width Of Image (Adjusted for font size);</span>
    	<span style="color: #000088;">$image_handle</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagecreatetruecolor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$width</span><span style="color: #339933;">,</span> <span style="color: #000088;">$height</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Initializes The Image Object</span>
    	<span style="color: #000088;">$text_color</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagecolorallocate</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image_handle</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Sets The Forecolor to Black (rgb: 0-0-0)</span>
    	<span style="color: #000088;">$background_color</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagecolorallocate</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image_handle</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Sets The Backcolor to white (rgb: 255-255-255)</span>
    	<span style="color: #000088;">$bg_height</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagesy</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image_handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Sets the background Y2 position</span>
    	<span style="color: #000088;">$bg_width</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagesx</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image_handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Sets The Background X2 Position</span>
    	<span style="color: #990000;">imagefilledrectangle</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image_handle</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$bg_width</span><span style="color: #339933;">,</span> <span style="color: #000088;">$bg_height</span><span style="color: #339933;">,</span> <span style="color: #000088;">$background_color</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Draws a background (filled rectangle) over the entire span of the image.</span>
    	<span style="color: #990000;">imagestring</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image_handle</span><span style="color: #339933;">,</span> <span style="color: #000088;">$font</span><span style="color: #339933;">,</span> <span style="color: #000088;">$padding</span><span style="color: #339933;">,</span> <span style="color: #000088;">$padding</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text_color</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Draw the text onto the foreground of the image.</span>
    	<span style="color: #666666; font-style: italic;">// php draws from back to front so the rectangle comes first.</span>
    	<span style="color: #990000;">imagejpeg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image_handle</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #666666; font-style: italic;">// Output the image. filename value of NULL tells GD to output to the client</span>
    	<span style="color: #666666; font-style: italic;">// as opposed to writing to a file. enter a file name to output to a file.</span>
    	<span style="color: #666666; font-style: italic;">// qality value of 100 tells php to output the best possible quality jpeg as possible</span>
    	<span style="color: #666666; font-style: italic;">// quality values are from 1 to 100</span>
    	<span style="color: #990000;">imagedestroy</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image_handle</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><a href='http://www.phpmagicbook.com/wp-content/uploads/2008/08/text-to-image.rar' class="download">Download Script</a></p>
<p><a href="http://www.phpmagicbook.com/text-to-image-using-php/">Text To Image Using PHP</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/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/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/php-is-not-secure/" title="PHP is Not Secure">PHP is Not Secure</a></li><li><a href="http://www.phpmagicbook.com/protect-php-dot-ini-file-from-being-viewed/" title="Protect php dot ini file from being viewed">Protect php dot ini file from being viewed</a></li><li><a href="http://www.phpmagicbook.com/php-essential-security-fixes-for-your-website/" title="PHP Essential Security Fixes For Your Website">PHP Essential Security Fixes For Your Website</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/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/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></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/text-to-image-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Captcha &#8211; Image And Number Verification Using PHP</title>
		<link>http://www.phpmagicbook.com/captcha-image-number-verification/</link>
		<comments>http://www.phpmagicbook.com/captcha-image-number-verification/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 23:35:44 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Captcha]]></category>
		<category><![CDATA[Form Validation]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Spam Control]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=124</guid>
		<description><![CDATA[This example is simple php, javascript image and number form validation. You can show number or image or both. If users enters correct number displayed then he can proceed with form submission. This example is using images containing numbers and these display randomly to validate form. Random Number Images Form Validation Captcha Example Download Captcha [...]<p><a href="http://www.phpmagicbook.com/captcha-image-number-verification/">Captcha &#8211; Image And Number Verification Using PHP</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/2008/06/captcha-1-1.jpg" alt="captcha, form authentication, form validation by image using php and javascript" title="Captcha Image And Number Verification" width="221" height="275" class="aligncenter size-full wp-image-125" /></p>
<p>This example is simple php, javascript image and number form validation. You can show number or image or both. If users enters correct number displayed then he can proceed with form submission. This example is using images containing numbers and these display randomly to validate form.</p>
<p><span id="more-203"></span></p>
<p><a href='http://www.phpmagicbook.com/wp-content/uploads/2008/06/random-number-images-verification-captcha.rar' class="download">Random Number Images Form Validation Captcha Example Download</a></p>
<p><a href="http://www.phpmagicbook.com/captcha-image-number-verification/">Captcha &#8211; Image And Number Verification Using PHP</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/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/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/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/random-number-verification-simple-form-authentication/" title="Random Number Verification &#8211; Simple Form Authentication Using PHP">Random Number Verification &#8211; Simple Form Authentication 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/captcha-image-number-verification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random Single Image Onload Using PHP</title>
		<link>http://www.phpmagicbook.com/random-single-image-onload/</link>
		<comments>http://www.phpmagicbook.com/random-single-image-onload/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 09:32:02 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[File]]></category>
		<category><![CDATA[Randomizing]]></category>
		<category><![CDATA[Rotating Content]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[rotater]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=107</guid>
		<description><![CDATA[Put all your images in a folder named as &#8216;images&#8217; and use this script to display a random image, everytime page reloads. PHP Code &#60;?php $imglist=''; //$img_folder is the variable that holds the path to the banner images. // see that you dont forget about the &#34;/&#34; at the end $img_folder = &#34;images/&#34;; mt_srand&#40;&#40;double&#41;microtime&#40;&#41;*1000&#41;; //use [...]<p><a href="http://www.phpmagicbook.com/random-single-image-onload/">Random Single Image Onload Using PHP</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>Put all your images in a folder named as &#8216;images&#8217; and use this script to display a random image, everytime page reloads.</p>
<p><span id="more-194"></span></p>
<h4>PHP Code</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: #000088;">$imglist</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//$img_folder is the variable that holds the path to the banner images.</span>
<span style="color: #666666; font-style: italic;">// see that you dont forget about the &quot;/&quot; at the end</span>
<span style="color: #000088;">$img_folder</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;images/&quot;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mt_srand</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>double<span style="color: #009900;">&#41;</span><span style="color: #990000;">microtime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//use the directory class</span>
<span style="color: #000088;">$imgs</span> <span style="color: #339933;">=</span> <span style="color: #990000;">dir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$img_folder</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//read all files from the directory, checks if are images and ads them to a list (see below how to display flash banners)</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$imgs</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">read</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;gif&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;jpg&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;png&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #000088;">$imglist</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$file</span> &quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #990000;">closedir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$imgs</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//put all images into an array</span>
<span style="color: #000088;">$imglist</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$imglist</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$no</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sizeof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$imglist</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//generate a random number between 0 and the number of images</span>
<span style="color: #000088;">$random</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mt_rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$no</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$image</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$imglist</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$random</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//display image</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;img src=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$img_folder</span><span style="color: #339933;">.</span><span style="color: #000088;">$image</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; border=0&gt;'</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/wp-content/uploads/2008/06/ranmd-pic-php-auto.rar' class="download">Random Image Display On Load &#8211; Download Script</a></p>
<p><a href="http://www.phpmagicbook.com/random-single-image-onload/">Random Single Image Onload Using PHP</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/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/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/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/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/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/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/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/random-single-image-onload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Javascript Based Auto Populated Image Gallery</title>
		<link>http://www.phpmagicbook.com/php-javascript-based-image-gallery/</link>
		<comments>http://www.phpmagicbook.com/php-javascript-based-image-gallery/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 07:50:55 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[File]]></category>
		<category><![CDATA[File Manipulation]]></category>
		<category><![CDATA[Image Galleries]]></category>
		<category><![CDATA[Image Galleries II]]></category>
		<category><![CDATA[Image Handling]]></category>
		<category><![CDATA[Images Slide Show]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=105</guid>
		<description><![CDATA[This script auto populates thumbs and navigation, Its a good slide show. However it does not control thumbnails quality but it can be modified a bit into some good Image Gallery. View Example PHP Javascript Slideshow &#8211; Gallery Download PHP Javascript Based Auto Populated Image Gallery is a post from: PHP Magic Book - Free [...]<p><a href="http://www.phpmagicbook.com/php-javascript-based-image-gallery/">PHP Javascript Based Auto Populated Image Gallery</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>This script auto populates thumbs and navigation, Its a good slide show. However it does not control thumbnails quality but it can be modified a bit into some good Image Gallery.</p>
<p><span id="more-193"></span></p>
<p><a rel="nofollow" target="_blank" href="http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm" target="_blank">View Example</a></p>
<p><a href='http://www.phpmagicbook.com/wp-content/uploads/2008/06/php-javascript-slideshow.rar' class="download">PHP Javascript Slideshow &#8211; Gallery Download</a></p>
<p><a href="http://www.phpmagicbook.com/php-javascript-based-image-gallery/">PHP Javascript Based Auto Populated Image Gallery</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-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/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/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><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/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/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></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/php-javascript-based-image-gallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto Display Images From Folder Using PHP</title>
		<link>http://www.phpmagicbook.com/display-images-from-folder/</link>
		<comments>http://www.phpmagicbook.com/display-images-from-folder/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 19:57:56 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[File]]></category>
		<category><![CDATA[Image Galleries]]></category>
		<category><![CDATA[Image Galleries II]]></category>
		<category><![CDATA[Image Handling]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=100</guid>
		<description><![CDATA[Save photos in a folder named as &#8216;images&#8217; and use these scripts to display all photos in a fly. Display Images From A Folder &#60;?php $files = glob&#40;&#34;images/*.*&#34;&#41;; for &#40;$i=1; $i&#60;count&#40;$files&#41;; $i++&#41; &#123; $num = $files&#91;$i&#93;; echo '&#60;img src=&#34;'.$num.'&#34; alt=&#34;random image&#34;&#62;'.&#34;&#38;nbsp;&#38;nbsp;&#34;; &#125; ?&#62; Display Images With Image Name From A Folder &#60;?php $files = glob&#40;&#34;images/*.*&#34;&#41;; [...]<p><a href="http://www.phpmagicbook.com/display-images-from-folder/">Auto Display Images From Folder Using PHP</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>Save photos in a folder named as &#8216;images&#8217; and use these scripts to display all photos in a fly.</p>
<p><span id="more-191"></span></p>
<h4>Display Images From A Folder</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: #000088;">$files</span> <span style="color: #339933;">=</span> <span style="color: #990000;">glob</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;images/*.*&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$num</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$files</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;img src=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$num</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; alt=&quot;random image&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;nbsp;&amp;nbsp;&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h4>Display Images With Image Name From A Folder</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: #000088;">$files</span> <span style="color: #339933;">=</span> <span style="color: #990000;">glob</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;images/*.*&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$num</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$files</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">print</span> <span style="color: #000088;">$num</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;img src=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$num</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; alt=&quot;random image&quot; /&gt;'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;br /&gt;&lt;br /&gt;&quot;</span><span style="color: #339933;">;</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/wp-content/uploads/2008/06/images-from-folder.rar' class="download">Display Images From Folder Script Download</a></p>
<p><a href="http://www.phpmagicbook.com/display-images-from-folder/">Auto Display Images From Folder Using PHP</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-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/image-gallery/" title="Auto Create Image Gallery from Folder Using PHP">Auto Create Image Gallery from Folder Using 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/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-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-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></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/display-images-from-folder/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Random Single Image Display On Page Reload Using PHP</title>
		<link>http://www.phpmagicbook.com/random-single-image-display-on-page-reload/</link>
		<comments>http://www.phpmagicbook.com/random-single-image-display-on-page-reload/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 18:05:21 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Randomizing]]></category>
		<category><![CDATA[Rotating Content]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[rotaters]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=98</guid>
		<description><![CDATA[Very small yet wow kind of script that takes a folder and displays random script image at every time page reloads. PHP Code &#60;?php $files = glob&#40;&#34;images/*.*&#34;&#41;; mt_srand&#40; &#40;double&#41; microtime&#40;&#41; * 1000000 &#41;; $num = mt_rand&#40;0, count&#40;$files&#41;-1&#41;; echo '&#60;img src=&#34;'.$files&#91;$num&#93;.'&#34; alt=&#34;&#34; /&#62;'; ?&#62; In this example &#8216;images&#8217; is the folder containing all the images. Every [...]<p><a href="http://www.phpmagicbook.com/random-single-image-display-on-page-reload/">Random Single Image Display On Page Reload Using PHP</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>Very small yet wow kind of script that takes a folder and displays random script image at every time page reloads.</p>
<p><span id="more-190"></span></p>
<h4>PHP Code</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: #000088;">$files</span> <span style="color: #339933;">=</span> <span style="color: #990000;">glob</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;images/*.*&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mt_srand</span><span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span>double<span style="color: #009900;">&#41;</span> <span style="color: #990000;">microtime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">1000000</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$num</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mt_rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;img src=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$num</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; alt=&quot;&quot; /&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>In this example &#8216;images&#8217; is the folder containing all the images. Every time page reloads, it will display different image.</p>
<p><a href='http://www.phpmagicbook.com/wp-content/uploads/2008/06/random-img-onreload.rar' class="download">Random Single Image On Page Reload PHP Script Download</a></p>
<p><a href="http://www.phpmagicbook.com/random-single-image-display-on-page-reload/">Random Single Image Display On Page Reload Using PHP</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/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/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/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/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/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-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/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/random-single-image-display-on-page-reload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto Create PHP Photo Slide Show Using PHP</title>
		<link>http://www.phpmagicbook.com/php-photo-slide-show/</link>
		<comments>http://www.phpmagicbook.com/php-photo-slide-show/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 17:51:10 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Image Galleries]]></category>
		<category><![CDATA[Images Slide Show II]]></category>
		<category><![CDATA[No Database]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[slide show]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=95</guid>
		<description><![CDATA[Great slide show which takes two different locations, one for thumbnail and other for actual size images and displays real slide show that can be stopped and started and also can be handled manually and its also dynamic and used images change without reloading the web page. - No Database Required - Real Slide show [...]<p><a href="http://www.phpmagicbook.com/php-photo-slide-show/">Auto Create PHP Photo Slide Show Using PHP</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><a href='http://www.phpmagicbook.com/wp-content/uploads/2008/06/slide-show-php.jpg' target="_blank"><img src="http://www.phpmagicbook.com/wp-content/uploads/2008/06/slide-show-php-300x229.jpg" alt="php slide show script" title="Slide Show php" width="300" height="229" class="aligncenter size-medium wp-image-96" /></a></p>
<p>Great slide show which takes two different locations, one for thumbnail and other for actual size images and displays real slide show that can be stopped and started and also can be handled manually and its also dynamic and used images change without reloading the web page.</p>
<p><span id="more-189"></span></p>
<p>- No Database Required<br />
- Real Slide show without page reload<br />
- Thumbnails and origional images<br />
- Auto and manual slide show support</p>
<p><a href='http://www.phpmagicbook.com/wp-content/uploads/2008/06/slide-show-php.rar' class="download">PHP Slide Show Script Download</a></p>
<p><a href="http://www.phpmagicbook.com/php-photo-slide-show/">Auto Create PHP Photo Slide Show Using PHP</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-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/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/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-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/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/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/php-photo-slide-show/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Auto Create Image Gallery from Folder Using PHP</title>
		<link>http://www.phpmagicbook.com/image-gallery/</link>
		<comments>http://www.phpmagicbook.com/image-gallery/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 17:31:43 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Image Galleries II]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=92</guid>
		<description><![CDATA[This script searches subdirectories for image files and creates the corresponding links and navigation for them. Per-photo comment is supported. The script doesn&#8217;t support index pages or thumbnails, just the photos and navigation are shown. Put your images in subfolders called gallery1, gallery2, gallery3, and so on. Put the titles for the various galleries in [...]<p><a href="http://www.phpmagicbook.com/image-gallery/">Auto Create Image Gallery from Folder Using PHP</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><a href='http://www.phpmagicbook.com/wp-content/uploads/2008/06/gallery-1-1.jpg' target="_blank"><img src="http://www.phpmagicbook.com/wp-content/uploads/2008/06/gallery-1-1-300x231.jpg" alt="PHP Auto Image Gallery" title="PHP Image Gallery" width="300" height="231" class="aligncenter size-medium wp-image-93" /></a></p>
<p>This script searches subdirectories for image files and creates the corresponding links and navigation for them. Per-photo comment is supported. The script doesn&#8217;t support index pages or thumbnails, just the photos and navigation are shown. Put your images in subfolders called gallery1, gallery2, gallery3, and so on. Put the titles for the various galleries in the links.txt file, a new line for every title. Now all photos will be automatically recognized.</p>
<p><span id="more-188"></span></p>
<p>You can add comments by creating the files gallery1.txt, gallery2.txt, gallery3.txt, and so on. These files work the same as links.txt, a new line for every new entry. Note that these comment files are not necessary.</p>
<p>- Gallery accepts jpg and gif files and title for every image.<br />
- No database required.</p>
<p><a href='http://www.phpmagicbook.com/wp-content/uploads/2008/06/gallery-2.rar' class="download">PHP Image Gallery 2 Download</a></p>
<p><a href="http://www.phpmagicbook.com/image-gallery/">Auto Create Image Gallery from Folder Using PHP</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-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/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/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-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-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></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/image-gallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
