<?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>SmileyLover Blog &#187; php tutorial</title>
	<atom:link href="http://blog.smileylover.com/tag/php-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.smileylover.com</link>
	<description>Sharing Knowledge and Resources</description>
	<lastBuildDate>Sun, 04 Apr 2010 18:32:35 +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>Dynamic Image With PHP</title>
		<link>http://blog.smileylover.com/dynamic-image-with-php/</link>
		<comments>http://blog.smileylover.com/dynamic-image-with-php/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 20:47:21 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[dynamic image]]></category>
		<category><![CDATA[php image]]></category>
		<category><![CDATA[php tutorial]]></category>

		<guid isPermaLink="false">http://blog.smileylover.com/?p=9</guid>
		<description><![CDATA[Normally if we want to use image on HTML we must using IMG tag with direct link of any image. But now with PHP we can do a little tricks. Just for fun and maybe it&#8217;s usefull for you. Who knows Let&#8217;s get started. This is normally IMG tag. &#60;img src=&#8221;http://domain.com/your-image-url.gif&#8221; /&#62; But now we [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Normally if we want to use image on HTML we must using IMG tag with direct link of any image.  But now with PHP we can do  a little tricks.  Just for fun and maybe it&#8217;s usefull for you.  Who knows <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Let&#8217;s get started.</p>
<p style="text-align: justify;">This is normally IMG tag.</p>
<blockquote>
<p style="text-align: justify;">&lt;img src=&#8221;http://domain.com/your-image-url.gif&#8221; /&gt;</p>
</blockquote>
<p style="text-align: justify;">But now we change like this.</p>
<blockquote>
<p style="text-align: justify;">&lt;img src=&#8221;http://domain.com/img.php?img=3&#8243; /&gt;</p>
</blockquote>
<p style="text-align: justify;"><span id="more-9"></span></p>
<p style="text-align: justify;">That&#8217;s just an example. So here is the code</p>
<blockquote style="text-align: justify;"><p>&lt;?php</p>
<p>/*<br />
By using this script you agree not to remove the link of coded by Ferri<br />
Homepage : http://smileylover.com<br />
Friendster Smiley, MySpace Smiley, Forum Smiley.<br />
*/</p>
<p>error_reporting(E_ALL);</p>
<p>if(isset($_GET['img'])) {</p>
<p>$img = $_GET['img'];</p>
<p>if(get_magic_quotes_gpc())<br />
{<br />
$img = stripslashes($img);<br />
}</p>
<p>$image = array</p>
<p>(&#8217;1&#8242; =&gt; &#8216;URL-IMAGE-1&#8242;,<br />
&#8217;2&#8242; =&gt; &#8216;URL-IMAGE-2&#8242;,);</p>
<p>header( &#8220;Content-type: image/gif&#8221; );<br />
@readfile (&#8220;$image[$img]&#8220;);</p>
<p>}<br />
?&gt;</p></blockquote>
<p style="text-align: justify;">Save code above into <em>img.php</em> then set your image url into array.  Example you set in array 1 -&gt; <strong>http://img368.imageshack.us/img368/9987/11lq3.gif</strong> and to call it with php set this code to get the same image.</p>
<blockquote>
<p style="text-align: justify;">http://domain.com/img.php?img=1</p>
</blockquote>
<p style="text-align: justify;">It can hide the real image url or hide long url. So enjoy it <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.smileylover.com/dynamic-image-with-php/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

