<?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</title>
	<atom:link href="http://blog.smileylover.com/category/php/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=abc</generator>
		<item>
		<title>How To Get Real IP User In Facebook Application</title>
		<link>http://blog.smileylover.com/how-to-get-real-ip-user-in-facebook-application/</link>
		<comments>http://blog.smileylover.com/how-to-get-real-ip-user-in-facebook-application/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 21:06:25 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[get facebook user ip]]></category>
		<category><![CDATA[get ip user in facebook]]></category>
		<category><![CDATA[get user facebook application ip]]></category>

		<guid isPermaLink="false">http://blog.smileylover.com/?p=266</guid>
		<description><![CDATA[In general we will use &#8220;$_SERVER['REMOTE_ADDR']&#8221; to get the IP of the visitor, but this does not apply in Facebook, because it will only remove IP from the server itself Facebook. If you are a facebook application developer, then there are ways we can use to get the IP of our facebook application visitor. Here [...]


Related posts:<ol><li><a href='http://blog.smileylover.com/facebook-application-get-fatal-error-message/' rel='bookmark' title='Permanent Link: Facebook Application Get &#8220;Fatal Error&#8221; Message?'>Facebook Application Get &#8220;Fatal Error&#8221; Message?</a></li>
<li><a href='http://blog.smileylover.com/view-facebook-private-photos-without-being-their-friend/' rel='bookmark' title='Permanent Link: View Facebook Private Photos Without Being Their Friend'>View Facebook Private Photos Without Being Their Friend</a></li>
<li><a href='http://blog.smileylover.com/different-types-links-url-of-facebook/' rel='bookmark' title='Permanent Link: Different Types Links (URL) Of Facebook'>Different Types Links (URL) Of Facebook</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In general we will use &#8220;$_SERVER['REMOTE_ADDR']&#8221; to get the IP of the visitor, but this does not apply in Facebook, because it will only remove IP from the server itself Facebook. If you are a facebook application developer, then there are ways we can use to <strong>get the IP</strong> of our facebook application visitor.</p>
<p>Here is the code used in music applications online <a title="Facebook Free Music Application" href="http://apps.facebook.com/mpthreeecho" target="_blank">http://apps.facebook.com/mpthreeecho</a></p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p266code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2662"><td class="code" id="p266code2"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$ip</span>            <span style="color: #339933;">=</span> <a href="http://www.php.net/array_values"><span style="color: #990000;">array_values</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$ip</span>            <span style="color: #339933;">=</span> <span style="color: #000088;">$ip</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">8</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Hopefully this brief article may help you in recording the statistics of your facebook application.</p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/btn/button_3793" title="How To Get Real IP User In Facebook Application" url="http://blog.smileylover.com/how-to-get-real-ip-user-in-facebook-application/"></script>

<p>Related posts:<ol><li><a href='http://blog.smileylover.com/facebook-application-get-fatal-error-message/' rel='bookmark' title='Permanent Link: Facebook Application Get &#8220;Fatal Error&#8221; Message?'>Facebook Application Get &#8220;Fatal Error&#8221; Message?</a></li>
<li><a href='http://blog.smileylover.com/view-facebook-private-photos-without-being-their-friend/' rel='bookmark' title='Permanent Link: View Facebook Private Photos Without Being Their Friend'>View Facebook Private Photos Without Being Their Friend</a></li>
<li><a href='http://blog.smileylover.com/different-types-links-url-of-facebook/' rel='bookmark' title='Permanent Link: Different Types Links (URL) Of Facebook'>Different Types Links (URL) Of Facebook</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smileylover.com/how-to-get-real-ip-user-in-facebook-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Adsense Publisher ID In Other Site With PHP and cURL</title>
		<link>http://blog.smileylover.com/change-adsense-publisher-id-in-other-site-with-php-and-curl/</link>
		<comments>http://blog.smileylover.com/change-adsense-publisher-id-in-other-site-with-php-and-curl/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 15:19:51 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://blog.smileylover.com/?p=215</guid>
		<description><![CDATA[This tutorial is actually a long time I write but only in the Indonesian language, and it is time to change it into English to be understood by more people. Through the help of PHP and cURL, we will try to change the code from adsense publisher ID (adsense injection) which usually use the format [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>This tutorial is actually a long time I write but only in the Indonesian language, and it is time to change it into English to be understood by more people.</p>
<p>Through the help of <strong>PHP</strong> and <strong>cURL</strong>, we will try to <strong>change the code from adsense publisher ID (adsense injection)</strong> which usually use the format &#8220;<strong>pub-1324123412341212</strong>&#8220;. 16 digits after the pub is the adsense code that will be changed into our publisher ID code. Here is a script that will be used:</p>
<p><span id="more-215"></span></p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p215code4'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2154"><td class="code" id="p215code4"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">//define URL</span>
    <span style="color: #000088;">$open_url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://blog.smileylover.com/all-about-bmw-news-luxury-cars'</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">//define your adsense ID, without pub-</span>
    <span style="color: #000088;">$adsense_id</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'1234123412341235'</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">//open connection  </span>
    <span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/curl_init"><span style="color: #990000;">curl_init</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  
&nbsp;
    <span style="color: #666666; font-style: italic;">//set the url, number of POST vars, POST data  </span>
    <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span>CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #000088;">$open_url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  
    <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_USERAGENT<span style="color: #339933;">,</span> <span style="color: #0000ff;">'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span>CURLOPT_FOLLOWLOCATION<span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span>CURLOPT_RETURNTRANSFER<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: #000088;">$result</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/curl_exec"><span style="color: #990000;">curl_exec</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  
    <a href="http://www.php.net/curl_close"><span style="color: #990000;">curl_close</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
    <span style="color: #666666; font-style: italic;">//replace original adsense code</span>
        <span style="color: #000088;">$pattern</span>    <span style="color: #339933;">=</span> <span style="color: #0000ff;">'#google_ad_client = \&quot;(.*)\&quot;#'</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$out</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pattern</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'google_ad_client = &quot;pub-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$adsense_id</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$out</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'#google_ad_slot#'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'//google_ad_slot'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$out</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$out</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'#google_ad_channel#'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'//google_ad_channel'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$out</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$out</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Please change the <strong>$open_url</strong> the target site that will be changed following codenya <strong>$adsense_id</strong> accordance with your publisher ID. Upload the script to your hosting course must support cURL. Open the script that has been uploaded via the browser and &#8220;<strong>view-source</strong>&#8221; on that page. Then you will find a publisher ID code has been changed according to what we write in the script! Happy earnings:)</p>
<p><a href="http://urlpeak.com" title="Shortened URL For Adsense"><strong>Demo (built in shortened URL)</strong></a></p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/btn/button_3793" title="Change Adsense Publisher ID In Other Site With PHP and cURL" url="http://blog.smileylover.com/change-adsense-publisher-id-in-other-site-with-php-and-curl/"></script>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.smileylover.com/change-adsense-publisher-id-in-other-site-with-php-and-curl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Free CB Plugin Simple Invitation (Invite Friends)</title>
		<link>http://blog.smileylover.com/free-cb-plugin-simple-invitation-invite-friends/</link>
		<comments>http://blog.smileylover.com/free-cb-plugin-simple-invitation-invite-friends/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 12:53:23 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[cb plugin simple invitation]]></category>
		<category><![CDATA[invite friend cb plugin]]></category>

		<guid isPermaLink="false">http://blog.smileylover.com/?p=181</guid>
		<description><![CDATA[From my last Joomla project, the client asks for the feature to send invitation email from CB profile page, so users can send email and invite friends to join with the community. So we need a recomended site script but in the form of a CB plugin. After the search, finally met &#8220;Invite A Friend [...]


Related posts:<ol><li><a href='http://blog.smileylover.com/wordpress-exchange-links-plugin/' rel='bookmark' title='Permanent Link: WordPress Exchange Links Plugin &#8211; AJAX Version'>WordPress Exchange Links Plugin &#8211; AJAX Version</a></li>
<li><a href='http://blog.smileylover.com/text2image-png-generator-free-online-generator-free-download/' rel='bookmark' title='Permanent Link: Text2Image (PNG) Generator &#8211; Free Online Generator &#8211; Free Download!'>Text2Image (PNG) Generator &#8211; Free Online Generator &#8211; Free Download!</a></li>
<li><a href='http://blog.smileylover.com/simple-ajax-captcha/' rel='bookmark' title='Permanent Link: Simple AJAX Captcha'>Simple AJAX Captcha</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>From my last Joomla project, the client asks for the feature to send invitation email from CB profile page, so users can send email and invite friends to join with the community. So we need a recomended site script but in the form of a CB plugin. After the search, finally met &#8220;<a href="http://joomlacode.org/gf/project/cb_invite/">Invite A Friend CB Plugin</a>&#8220;. But that plugin can not work at all (on Joomla 1.5.12 and CB 1.2.1).</p>
<p>This is the background that I decided to create my own plugin invite friend. Seeing the API Guide Book for CB plugins, then the plugin was born, <a href="http://blog.smileylover.com/free-cb-plugin-simple-invitation-invite-friends/" title="Free CB Plugin Simple Invitation (Invite Friends)"><strong>CB Simple Invitation</strong></a>. Simple because this plugin does not need a database at all and very easy to use:) Supported with <a href="http://jquery.com" title="jquery homepage">JQuery for AJAX</a>, so the plugin makes it light and sweet in its use.<br />
<span id="more-181"></span><br />
The installation process:<br />
1. Download first <a href="http://cbplugin-simpleinvitation.googlecode.com/files/plug_cbsimpleinvitation.zip" title="Free CB Plugin Simple Invitation (Invite Friends)"><strong>CB Plugin Simple Invitation</strong>, now hosted in Joomlapolis!</a><br />
2. Upload ZIP files from &#8220;Install Plugin&#8221; CB Panel<br />
3. Publish CB Plugin Simple Invitation from &#8220;Plugin Management&#8221;<br />
4. Go to &#8220;Tab Management&#8221; and the settings for Email Subject and Content!<br />
5. Remember! Content is email support HTML Tags. All email invitation is HTML Email!<br />
6. Just that! now you can see live in your CB profile <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Simple installation right? This is screenshot in action.<br />
<center><br />
<br />
<a href="http://tinypic.com/view.php?pic=2uzc5lc&#038;s=3" title="Free CB Plugin Simple Invitation (Invite Friends)" target="_blank" ><img src="http://i30.tinypic.com/2uzc5lc_th.gif" alt="Free CB Plugin Simple Invitation (Invite Friends)" align="center" /></a><br />
<br />
</center></p>
<blockquote><p><a href="http://joomla-invitation.smileylover.com/index.php?option=com_comprofiler&#038;task=userProfile&#038;user=62&#038;Itemid=2" title="Free CB Plugin Simple Invitation (Invite A Friend)">Demo</a></p></blockquote>
<p>This plugin is free as long as copyright link still exists in the bottom page. If you need to remove it, then you need to donate some money for me by <a href="http://paypal" title="PayPal lets you send money to anyone with email">Paypal</a> <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Update:<br />
This free cb plugin now approved and hosted in <a href="http://www.joomlapolis.com/component/option,com_mtree/task,viewlink/link_id,511/Itemid,60/" title="Free Download CB Plugin Simple Invitation">Joomlapolis</a>! Thnx all.</p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/btn/button_3793" title="Free CB Plugin Simple Invitation (Invite Friends)" url="http://blog.smileylover.com/free-cb-plugin-simple-invitation-invite-friends/"></script>

<p>Related posts:<ol><li><a href='http://blog.smileylover.com/wordpress-exchange-links-plugin/' rel='bookmark' title='Permanent Link: WordPress Exchange Links Plugin &#8211; AJAX Version'>WordPress Exchange Links Plugin &#8211; AJAX Version</a></li>
<li><a href='http://blog.smileylover.com/text2image-png-generator-free-online-generator-free-download/' rel='bookmark' title='Permanent Link: Text2Image (PNG) Generator &#8211; Free Online Generator &#8211; Free Download!'>Text2Image (PNG) Generator &#8211; Free Online Generator &#8211; Free Download!</a></li>
<li><a href='http://blog.smileylover.com/simple-ajax-captcha/' rel='bookmark' title='Permanent Link: Simple AJAX Captcha'>Simple AJAX Captcha</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smileylover.com/free-cb-plugin-simple-invitation-invite-friends/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Text2Image (PNG) Generator &#8211; Free Online Generator &#8211; Free Download!</title>
		<link>http://blog.smileylover.com/text2image-png-generator-free-online-generator-free-download/</link>
		<comments>http://blog.smileylover.com/text2image-png-generator-free-online-generator-free-download/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 06:11:41 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[free online generator text2image]]></category>
		<category><![CDATA[online text to image generator]]></category>

		<guid isPermaLink="false">http://blog.smileylover.com/?p=117</guid>
		<description><![CDATA[I&#8217;ve created a simple PHP script based on Seal Rock script that enable you to convert a bunch of text to image (png) on the fly, including your watermark as signature to result image First, take a look the demo at TEXT2IMAGE.CO.NR. Write any text you like and generate. Bingo &#8230; Your image now is [...]


Related posts:<ol><li><a href='http://blog.smileylover.com/write-friendster-comment-more-than-1000-chars-with-text2image/' rel='bookmark' title='Permanent Link: Write Friendster Comment More Than 1000 Chars with Text2Image!'>Write Friendster Comment More Than 1000 Chars with Text2Image!</a></li>
<li><a href='http://blog.smileylover.com/making-border-image-with-php-and-gd-library/' rel='bookmark' title='Permanent Link: Making Border Image with PHP and GD Library'>Making Border Image with PHP and GD Library</a></li>
<li><a href='http://blog.smileylover.com/remote-upload-to-imageshackus-with-phpcurl/' rel='bookmark' title='Permanent Link: Remote Upload To Imageshack.Us With PHP+cURL'>Remote Upload To Imageshack.Us With PHP+cURL</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I&#8217;ve created a simple PHP script based on Seal Rock script that enable you to convert a bunch of text to image (png) on the fly, including your watermark as signature to result image <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   First, take a look the demo at <strong><a title="Free Online Text2Image Generator" href="http://text2image.co.nr" target="_blank">TEXT2IMAGE.CO.NR</a></strong>.  Write any text you like and  generate.  Bingo &#8230; Your image now is already generated!  Next, click &#8220;Get Code&#8221; and two code will appear, HTML Code and BB Code.  We have transfered your image to ImageShack.Us in background process <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Please read my post about <a title="Remote Upload To Imageshack.Us With PHP+cURL" href="http://blog.smileylover.com/remote-upload-to-imageshackus-with-phpcurl/" target="_blank"><strong>ImageShack.Us Remote Uploader</strong></a> to get details also download free script!</p>
<p style="text-align: justify;">Now this script is open to public!  That&#8217;s mean you can download source and use it anywhere, as long you&#8217;re not remove backlink to us:)  Agree??  If you do, you can download now <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: justify;"><span id="more-117"></span></p>
<blockquote>
<p style="text-align: justify;"><a title="Free Download Text2Image Generator Script" href="http://sharecash.org/download.php?file=206428" target="_blank"><strong>Download code</strong></a></p>
<p>
<a href="http://www.hotscripts.com/Detailed/85498.html?RID=N700015"><img src="http://images.hotscripts.com/dynamic/mostpopular.gif?LINKID" border="0"></a>
</p>
</blockquote>
<p style="text-align: justify;">There&#8217;s a little different about public version and TEXT2IMAGE.CO.NR version.  Public version doesn&#8217;t have sidebar and session save options.  But anyway, you can still get this all functions :</p>
<ol>
<li>Font type (True Type)</li>
<li>Font height (point)</li>
<li>Font color (including color picker)</li>
<li>Text Shadow</li>
<li>Background color (including color picker)</li>
<li>Transparent background</li>
<li>Image border</li>
<li>Border color (including color picker)</li>
<li>Image width</li>
<li>Characters remaining counter</li>
<li>Statistic for generated images</li>
<li>Transfer image to ImageShack.Us in AJAX realm!</li>
</ol>
<p>It&#8217;s so easy to install it.  First make sure your hosting support cURL to transfer image to ImageShack.Us.  Second, follow this instructions.</p>
<ol>
<li>Upload whole script using FTP</li>
<li>CHMOD &#8220;<strong>temp</strong>&#8221; folder and &#8220;<strong>php/counter.txt</strong>&#8221; to 777</li>
<li>You&#8217;re DONE!!</li>
</ol>
<p>You can add more fonts by upload them to &#8220;<strong>fonts</strong>&#8221; folder.  Be carefull, some UNIX server can&#8217;t recognize font with &#8220;<strong>TTF</strong>&#8221; extension, you must change them into &#8220;<strong>ttf</strong>&#8220;.  Change watermark image with yours, please pay attention to dimension.  Try to create your watermark with 80&#215;15 pixel <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>
Please write a comment if you have any problems <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
<p>
Regards
</p>
<p style="text-align: justify;">
<script type="text/javascript" class="owbutton" src="http://onlywire.com/btn/button_3793" title="Text2Image (PNG) Generator - Free Online Generator - Free Download!" url="http://blog.smileylover.com/text2image-png-generator-free-online-generator-free-download/"></script>

<p>Related posts:<ol><li><a href='http://blog.smileylover.com/write-friendster-comment-more-than-1000-chars-with-text2image/' rel='bookmark' title='Permanent Link: Write Friendster Comment More Than 1000 Chars with Text2Image!'>Write Friendster Comment More Than 1000 Chars with Text2Image!</a></li>
<li><a href='http://blog.smileylover.com/making-border-image-with-php-and-gd-library/' rel='bookmark' title='Permanent Link: Making Border Image with PHP and GD Library'>Making Border Image with PHP and GD Library</a></li>
<li><a href='http://blog.smileylover.com/remote-upload-to-imageshackus-with-phpcurl/' rel='bookmark' title='Permanent Link: Remote Upload To Imageshack.Us With PHP+cURL'>Remote Upload To Imageshack.Us With PHP+cURL</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smileylover.com/text2image-png-generator-free-online-generator-free-download/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Bypass Links by Urlcash.net, Usercash.com, Anonym.to, Lix.in, Linkbucks.com and Get Direct Links.</title>
		<link>http://blog.smileylover.com/bypass-links-by-urlcashnet-usercashcom-anonymto-lixin-linkbuckscom-and-get-direct-links/</link>
		<comments>http://blog.smileylover.com/bypass-links-by-urlcashnet-usercashcom-anonymto-lixin-linkbuckscom-and-get-direct-links/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 21:01:32 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Rapidshare]]></category>
		<category><![CDATA[bypass ads links]]></category>

		<guid isPermaLink="false">http://blog.smileylover.com/?p=111</guid>
		<description><![CDATA[If you have hobbies download files from internet, maybe you ever found some links that cover by some ads links like Usercash.com, Urlcash.net, Linkbucks.com, and protect links like Lix.in, Anonym.to. It&#8217;s ok if somebody using protect links to keep their links stay longer but is so annoyed if they using ads links. We can&#8217;t get [...]


Related posts:<ol><li><a href='http://blog.smileylover.com/universal-ajax-links-checker-no-rapidshare-pishing/' rel='bookmark' title='Permanent Link: Universal AJAX Links Checker &#8211; No Rapidshare Pishing'>Universal AJAX Links Checker &#8211; No Rapidshare Pishing</a></li>
<li><a href='http://blog.smileylover.com/wordpress-exchange-links-plugin/' rel='bookmark' title='Permanent Link: WordPress Exchange Links Plugin &#8211; AJAX Version'>WordPress Exchange Links Plugin &#8211; AJAX Version</a></li>
<li><a href='http://blog.smileylover.com/simple-ajax-captcha/' rel='bookmark' title='Permanent Link: Simple AJAX Captcha'>Simple AJAX Captcha</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">If you have hobbies download files from internet, maybe you ever found some links that cover by some ads links like <a href="http://usercash.com"><strong>Usercash.com</strong></a>, <a href="http://urlcash.net"><strong>Urlcash.net</strong></a>, <a href="http://Linkbucks.com"><strong>Linkbucks.com</strong></a>, and protect links like <a href="http://Lix.in"><strong>Lix.in</strong></a>, <a href="http://Anonym.to"><strong>Anonym.to</strong></a>.  It&#8217;s ok if somebody using protect links to keep their links stay longer but is so annoyed if they using ads links.  We can&#8217;t get direct links without visiting ads page!</p>
<p style="text-align: justify;">It&#8217;s consumed more bandwith and time, usually they give a time to redirect to direct links in 10 seconds.  Now you just want to download 1 file with 1 ads link, you said &#8220;<em>it&#8217;s ok, no problem, just wait in 10 seconds or click direct link in page</em>&#8220;.  But what happen if you want to download 10 links or more?? we must open new window in our browser 10 times and wait for 10 seconds * 10!! Stop that and try being smart now <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: justify;"><span id="more-111"></span></p>
<p style="text-align: justify;">Now it&#8217;s the tricks to bypass all link above, both ads links and protect links.  Open new window in your browser and start to type <a title="Universal AJAX Link Checker" href="http://rapidcheck.co.nr" target="_blank">http://rapidcheck.co.nr</a>.  It&#8217;s <a title="Universal AJAX Link Checker" href="http://rapidcheck.co.nr"><strong>Universal AJAX Link Checker</strong></a> that enabled you to check all links above or any direct links and return the status, active or dead, also return file size for Rapidshare.com, Megaupload.com, Ziddu.com.  Cool enough huh?</p>
<p style="text-align: justify;">With this online tools you can save a lot of time and start to download your file faster <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   You can check up to 300 links in one time! After result appear you can click on <strong>©</strong> symbol in right side to auto copy link to your clipboard! This is a screenshot in action.</p>
<p style="text-align: center;">
<a href="http://img386.imageshack.us/my.php?image=rapidcheckep8.png" target="_blank"><img src="http://img386.imageshack.us/img386/6417/rapidcheckep8.th.png" border="0" alt="Bypass Urlcash.net, Usercash.com, Anonym.to, Lix.in, Linkbucks.com and Get Direct Links!.txt" /></a>
</p>
<p style="text-align: justify;">Just a tips for you, if your links size is rapidshare or megaupload and under 40MB you can using <a href="http://Rapidshare.info.tm">Rapidshare.info.tm</a> and <a href="http://Viete.info">Viete.info</a> to generate premium link <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Try to use <a href="http://Nbe-Media.com">Nbe-Media.com</a> to download big file size.  Happy downloading <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/btn/button_3793" title="Bypass Links by Urlcash.net, Usercash.com, Anonym.to, Lix.in, Linkbucks.com and Get Direct Links." url="http://blog.smileylover.com/bypass-links-by-urlcashnet-usercashcom-anonymto-lixin-linkbuckscom-and-get-direct-links/"></script>

<p>Related posts:<ol><li><a href='http://blog.smileylover.com/universal-ajax-links-checker-no-rapidshare-pishing/' rel='bookmark' title='Permanent Link: Universal AJAX Links Checker &#8211; No Rapidshare Pishing'>Universal AJAX Links Checker &#8211; No Rapidshare Pishing</a></li>
<li><a href='http://blog.smileylover.com/wordpress-exchange-links-plugin/' rel='bookmark' title='Permanent Link: WordPress Exchange Links Plugin &#8211; AJAX Version'>WordPress Exchange Links Plugin &#8211; AJAX Version</a></li>
<li><a href='http://blog.smileylover.com/simple-ajax-captcha/' rel='bookmark' title='Permanent Link: Simple AJAX Captcha'>Simple AJAX Captcha</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smileylover.com/bypass-links-by-urlcashnet-usercashcom-anonymto-lixin-linkbuckscom-and-get-direct-links/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Calculation Your PHP Processing Time Using Simple Counter</title>
		<link>http://blog.smileylover.com/calculation-your-php-processing-time-using-simple-counter/</link>
		<comments>http://blog.smileylover.com/calculation-your-php-processing-time-using-simple-counter/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 19:50:59 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[php counter processing]]></category>

		<guid isPermaLink="false">http://blog.smileylover.com/?p=109</guid>
		<description><![CDATA[It&#8217;s a good idea for PHP progammer to know how fast their application process. With this info they can decide what best coding to achieve high perfomance. We&#8217;ll using microtime() function that&#8217;s already exist in PHP. Microtime will returns the current timestamp with microseconds. The basic idea is when first PHP running the process, counting [...]


Related posts:<ol><li><a href='http://blog.smileylover.com/making-border-image-with-php-and-gd-library/' rel='bookmark' title='Permanent Link: Making Border Image with PHP and GD Library'>Making Border Image with PHP and GD Library</a></li>
<li><a href='http://blog.smileylover.com/simple-ajax-captcha/' rel='bookmark' title='Permanent Link: Simple AJAX Captcha'>Simple AJAX Captcha</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">It&#8217;s a good idea for PHP progammer to know how fast their application process.  With this info they can decide what best coding to achieve high perfomance.  We&#8217;ll using <strong>microtime()</strong> function that&#8217;s already exist in PHP.  Microtime will returns the current timestamp with microseconds.</p>
<p style="text-align: justify;">The basic idea is when first PHP running the process, counting function will work and note as begin time and when process is finished counting function call again and note as end time.  From this two variable we can get all processing time by decrease end time with begin time.  The result will return in microseconds.</p>
<p style="text-align: justify;"><span id="more-109"></span></p>
<p style="text-align: justify;">Now it&#8217;s full code.  Place this code in first line after open tag PHP if possible ( be carefull with any session function).</p>
<p style="text-align: justify;">

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p109code7'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1097"><td class="code" id="p109code7"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$time</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <a href="http://www.php.net/microtime"><span style="color: #990000;">microtime</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$time</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$time</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$time</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// return array</span>
<span style="color: #000088;">$begintime</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$time</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//define begin time</span></pre></td></tr></table></div>

<p style="text-align: justify;">And place this code before closing tag PHP.</p>
<p style="text-align: justify;">

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p109code8'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1098"><td class="code" id="p109code8"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$time</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span> <a href="http://www.php.net/microtime"><span style="color: #990000;">microtime</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$time</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$time</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$time</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$endtime</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$time</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//define end time</span>
<span style="color: #000088;">$totaltime</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$endtime</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$begintime</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//decrease to get total time</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$totaltime</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' seconds'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//echo it to appear in browser</span></pre></td></tr></table></div>

<p style="text-align: justify;">Now anytime your PHP running it will return how long the process took <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/btn/button_3793" title="Calculation Your PHP Processing Time Using Simple Counter" url="http://blog.smileylover.com/calculation-your-php-processing-time-using-simple-counter/"></script>

<p>Related posts:<ol><li><a href='http://blog.smileylover.com/making-border-image-with-php-and-gd-library/' rel='bookmark' title='Permanent Link: Making Border Image with PHP and GD Library'>Making Border Image with PHP and GD Library</a></li>
<li><a href='http://blog.smileylover.com/simple-ajax-captcha/' rel='bookmark' title='Permanent Link: Simple AJAX Captcha'>Simple AJAX Captcha</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smileylover.com/calculation-your-php-processing-time-using-simple-counter/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Making Border Image with PHP and GD Library</title>
		<link>http://blog.smileylover.com/making-border-image-with-php-and-gd-library/</link>
		<comments>http://blog.smileylover.com/making-border-image-with-php-and-gd-library/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 19:45:46 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[border image php gd]]></category>
		<category><![CDATA[dynamic image border]]></category>

		<guid isPermaLink="false">http://blog.smileylover.com/?p=107</guid>
		<description><![CDATA[As i know, PHP don&#8217;t have a function to create image border directly. So, how to make border image if PHP doesn&#8217;t have it? We must set manually using imageline function that already have in PHP since version 4 built in GD library. Before we go, we need to describe what is image border. That [...]


Related posts:<ol><li><a href='http://blog.smileylover.com/calculation-your-php-processing-time-using-simple-counter/' rel='bookmark' title='Permanent Link: Calculation Your PHP Processing Time Using Simple Counter'>Calculation Your PHP Processing Time Using Simple Counter</a></li>
<li><a href='http://blog.smileylover.com/making-wordpress-exchange-links-without-plugins/' rel='bookmark' title='Permanent Link: Making WordPress Exchange Links Without Plugins'>Making WordPress Exchange Links Without Plugins</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">As i know, PHP don&#8217;t have a function to create image border directly.  So, how to make border image if PHP doesn&#8217;t have it?  We must set manually using imageline function that already have in PHP since version 4 built in GD library.  Before we go, we need to describe what is image border. That is a line in all side of image, top, right, bottom, and left.</p>
<p style="text-align: justify;">Imageline function just allowed us to draw a single line between two given points.  The parameters are :</p>
<blockquote>
<p style="text-align: justify;">image<br />
An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().</p>
<p>x1<br />
x-coordinate for first point</p>
<p>y1<br />
y-coordinate for first point</p>
<p>x2<br />
x-coordinate for second point</p>
<p>y2<br />
y-coordinate for second point</p>
<p>color<br />
The line color. A color identifier created with imagecolorallocate()</p></blockquote>
<p style="text-align: justify;"><span id="more-107"></span></p>
<p style="text-align: justify;">It will return true on success and false on failed.  Because we need four single line in all side of image to create border, so we need to create imageline function four times to cover top, right, bottom, and left.  This is the code (don&#8217;t forget to manually add <strong>&lt;?php</strong> and<strong> ?&gt;</strong> tag in begin and end code).</p>
<p style="text-align: justify;">

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p107code10'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10710"><td class="code" id="p107code10"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// create a 200*60 image</span>
<span style="color: #000088;">$im</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/imagecreate"><span style="color: #990000;">imagecreate</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">200</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">60</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// white background and blue text</span>
<span style="color: #000088;">$bg</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/imagecolorallocate"><span style="color: #990000;">imagecolorallocate</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">222</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">222</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">222</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$textcolor</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/imagecolorallocate"><span style="color: #990000;">imagecolorallocate</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</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;">255</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// write the string</span>
<a href="http://www.php.net/imagestring"><span style="color: #990000;">imagestring</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">30</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">20</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;SmileyLover.Com&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$textcolor</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//border</span>
	<span style="color: #000088;">$bordercolors</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/imagecolorallocate"><span style="color: #990000;">imagecolorallocate</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</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;">20</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Define border color  Yellow</span>
&nbsp;
	<span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$y</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$w</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/imagesx"><span style="color: #990000;">imagesx</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//get width image and decrease 1px or points ?</span>
	<span style="color: #000088;">$h</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/imagesy"><span style="color: #990000;">imagesy</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//get height image and decrease 1px or points ?</span>
	<a href="http://www.php.net/imageline"><span style="color: #990000;">imageline</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #000088;">$x</span><span style="color: #339933;">,</span><span style="color: #000088;">$y</span><span style="color: #339933;">,</span><span style="color: #000088;">$x</span><span style="color: #339933;">,</span><span style="color: #000088;">$y</span><span style="color: #339933;">+</span><span style="color: #000088;">$h</span><span style="color: #339933;">,</span><span style="color: #000088;">$bordercolors</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//left</span>
	<a href="http://www.php.net/imageline"><span style="color: #990000;">imageline</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #000088;">$x</span><span style="color: #339933;">,</span><span style="color: #000088;">$y</span><span style="color: #339933;">,</span><span style="color: #000088;">$x</span><span style="color: #339933;">+</span><span style="color: #000088;">$w</span><span style="color: #339933;">,</span><span style="color: #000088;">$y</span><span style="color: #339933;">,</span><span style="color: #000088;">$bordercolors</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//top</span>
	<a href="http://www.php.net/imageline"><span style="color: #990000;">imageline</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #000088;">$x</span><span style="color: #339933;">+</span><span style="color: #000088;">$w</span><span style="color: #339933;">,</span><span style="color: #000088;">$y</span><span style="color: #339933;">,</span><span style="color: #000088;">$x</span><span style="color: #339933;">+</span><span style="color: #000088;">$w</span><span style="color: #339933;">,</span><span style="color: #000088;">$y</span><span style="color: #339933;">+</span><span style="color: #000088;">$h</span><span style="color: #339933;">,</span><span style="color: #000088;">$bordercolors</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//right</span>
	<a href="http://www.php.net/imageline"><span style="color: #990000;">imageline</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #000088;">$x</span><span style="color: #339933;">,</span><span style="color: #000088;">$y</span><span style="color: #339933;">+</span><span style="color: #000088;">$h</span><span style="color: #339933;">,</span><span style="color: #000088;">$x</span><span style="color: #339933;">+</span><span style="color: #000088;">$w</span><span style="color: #339933;">,</span><span style="color: #000088;">$y</span><span style="color: #339933;">+</span><span style="color: #000088;">$h</span><span style="color: #339933;">,</span><span style="color: #000088;">$bordercolors</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//bottom</span>
	<span style="color: #666666; font-style: italic;">//end border</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// output the image</span>
<a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type: image/png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/imagepng"><span style="color: #990000;">imagepng</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p style="text-align: justify;">This code only give you 1px line border with yellow color.  If you want to make a 10px border maybe you can loops this function and decrease a padding -1px for each loops <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Good luck &#8230; and this is the screenshot result.</p>
<p style="text-align: center;"><a href="http://www.imagecow.net/content.php?id=17714&#038;owner=ghprod" target="_blank"><br />
<img src="http://www.imagecow.net/preview/000017714.png" border="0" alt="Making Border Image with PHP and GD Library" title="Making Border Image with PHP and GD Library"></a></p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/btn/button_3793" title="Making Border Image with PHP and GD Library" url="http://blog.smileylover.com/making-border-image-with-php-and-gd-library/"></script>

<p>Related posts:<ol><li><a href='http://blog.smileylover.com/calculation-your-php-processing-time-using-simple-counter/' rel='bookmark' title='Permanent Link: Calculation Your PHP Processing Time Using Simple Counter'>Calculation Your PHP Processing Time Using Simple Counter</a></li>
<li><a href='http://blog.smileylover.com/making-wordpress-exchange-links-without-plugins/' rel='bookmark' title='Permanent Link: Making WordPress Exchange Links Without Plugins'>Making WordPress Exchange Links Without Plugins</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smileylover.com/making-border-image-with-php-and-gd-library/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Free MP3 Codes &#8211; Friendster MP3 &#8211; Free Flash MP3 Player</title>
		<link>http://blog.smileylover.com/free-mp3-codes-friendster-mp3-free-flash-mp3-player/</link>
		<comments>http://blog.smileylover.com/free-mp3-codes-friendster-mp3-free-flash-mp3-player/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 19:19:58 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[SmileyLover News]]></category>
		<category><![CDATA[free mp3 codes]]></category>
		<category><![CDATA[friendster mp3 player]]></category>

		<guid isPermaLink="false">http://blog.smileylover.com/?p=82</guid>
		<description><![CDATA[Hi all, SmileyLover.Com now try to expanded the network into streaming music area. So let me introduce our new service, Free MP3 Codes &#8211; Friendster MP3 &#8211; Free Flash MP3 Player that you can access at MP3.SmileyLover.Com. The truth behind the system is, we don&#8217;t hosting any files to be streaming at our server but [...]


Related posts:<ol><li><a href='http://blog.smileylover.com/how-to-get-real-ip-user-in-facebook-application/' rel='bookmark' title='Permanent Link: How To Get Real IP User In Facebook Application'>How To Get Real IP User In Facebook Application</a></li>
<li><a href='http://blog.smileylover.com/text2image-png-generator-free-online-generator-free-download/' rel='bookmark' title='Permanent Link: Text2Image (PNG) Generator &#8211; Free Online Generator &#8211; Free Download!'>Text2Image (PNG) Generator &#8211; Free Online Generator &#8211; Free Download!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>SmileyLover.Com now try to expanded the network into streaming music area.  So let me introduce our new service, <strong>Free MP3 Codes &#8211; Friendster MP3 &#8211; Free Flash MP3 Player</strong> that you can access at <a title="Free MP3 Codes - Friendster MP3 - Free Flash MP3 Player" href="http://mp3.smileylover.com" target="_blank"><strong>MP3.SmileyLover.Com</strong></a>.  The truth behind the system is, we don&#8217;t hosting any files to be streaming at our server but it&#8217;s fetching from <strong><a title="Video Sharing" href="http://youtube.com" target="_blank">Youtube</a></strong> <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   How is it works?</p>
<p>As we know, Youtube has a lot of (billion <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ) of music videos that available to embed in everywhere.  Based on Youtube API, so we try to make some application under PHP to fetch data realtime from Youtube <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Great!  Because this application just want to cover audio from videos so we limit to title song become title mp3, duration, and play times.</p>
<p><span id="more-82"></span></p>
<p>Get confuse?  Just try it in <a title="Free MP3 Codes - Friendster MP3 - Free Flash MP3 Player" href="http://mp3.smileylover.com" target="_blank"><strong>MP3.SmileyLover.Com</strong></a> and realize that&#8217;s so easy to use <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />   <em>Search your song, Click details, GET code, Copy, and Paste</em> anywhere you like!  Feel high speed Youtube server in your mp3&#8242;s streaming!</p>
<p>Our planning is we&#8217;ll distributed this script free in next month, so you can get started your own site MP3 Player Streaming.  Just stay update with us!</p>
<p>This is sample how your mp3 player in action <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><center><br />
Andien &#8211; Gemintang<br /><img border="0" src="http://img58.imageshack.us/img58/5/equf6.gif" width="300"><br /><embed src="http://mp3.smileylover.com/player.php" width="300" height="20" allowscriptaccess="always" allowfullscreen="true" flashvars="height=20&#038;width=300&#038;file=http://www.youtube.com/watch?v=wPqkP339Ybk&#038;backcolor=0x1E0B02&#038;frontcolor=0xcc3300&#038;lightcolor=0x87B6CD&#038;volume=90&#038;searchbar=false&#038;autostart=false" /><br /><a href="http://mp3.smileylover.com/" title="Friendster MP3"><b>MP3.Smileylover.Com</b></a><br />
</center></p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/btn/button_3793" title="Free MP3 Codes - Friendster MP3 - Free Flash MP3 Player" url="http://blog.smileylover.com/free-mp3-codes-friendster-mp3-free-flash-mp3-player/"></script>

<p>Related posts:<ol><li><a href='http://blog.smileylover.com/how-to-get-real-ip-user-in-facebook-application/' rel='bookmark' title='Permanent Link: How To Get Real IP User In Facebook Application'>How To Get Real IP User In Facebook Application</a></li>
<li><a href='http://blog.smileylover.com/text2image-png-generator-free-online-generator-free-download/' rel='bookmark' title='Permanent Link: Text2Image (PNG) Generator &#8211; Free Online Generator &#8211; Free Download!'>Text2Image (PNG) Generator &#8211; Free Online Generator &#8211; Free Download!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smileylover.com/free-mp3-codes-friendster-mp3-free-flash-mp3-player/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>WordPress Exchange Links Plugin &#8211; AJAX Version</title>
		<link>http://blog.smileylover.com/wordpress-exchange-links-plugin/</link>
		<comments>http://blog.smileylover.com/wordpress-exchange-links-plugin/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 19:04:40 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Localhost]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress exchange links plugin]]></category>
		<category><![CDATA[wordpress links exchange plugin]]></category>
		<category><![CDATA[wordpress seo plugin]]></category>

		<guid isPermaLink="false">http://blog.smileylover.com/?p=75</guid>
		<description><![CDATA[Let me introduce a new plugin called WpExLinks. This is my first plugin for WordPress that enable you to build your links network with other webmaster. This proccess now more easier in WordPress realm. We can automate the proccess and we&#8217;ll get some notification email in the end of proccess. Here are some feature from [...]


Related posts:<ol><li><a href='http://blog.smileylover.com/making-wordpress-exchange-links-without-plugins/' rel='bookmark' title='Permanent Link: Making WordPress Exchange Links Without Plugins'>Making WordPress Exchange Links Without Plugins</a></li>
<li><a href='http://blog.smileylover.com/simple-ajax-captcha/' rel='bookmark' title='Permanent Link: Simple AJAX Captcha'>Simple AJAX Captcha</a></li>
<li><a href='http://blog.smileylover.com/free-cb-plugin-simple-invitation-invite-friends/' rel='bookmark' title='Permanent Link: Free CB Plugin Simple Invitation (Invite Friends)'>Free CB Plugin Simple Invitation (Invite Friends)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Let me introduce a new plugin called <strong>WpExLinks</strong>.  This is my first plugin for WordPress that enable you to build your links network with other webmaster.  This proccess now more easier in WordPress realm.  We can automate the proccess and we&#8217;ll get some notification email in the end of proccess.  Here are some feature from my plugin :</p>
<ol>
<li>Auto checking error if this fields were blank (name, email, website title, website URL, reciprocal URL, website description)</li>
<li>Checking for valid format of email, website url, reciprocal url</li>
<li>Checking for status reciprocal url before submitted</li>
<li>Auto blocked same domain submitted</li>
<li>Integrate AJAX CAPTCHA and AJAX sending form in user interface</li>
<li>Notification email for admin when some submit link</li>
<li>Edit Links Page! available</li>
<li>Widget already</li>
<li>Easy manage links (<em>delete, approve, unapprove, check reciprocal links</em>) from Options page</li>
</ol>
<p><span id="more-75"></span></p>
<p>Here are installation step :</p>
<ul>
<li>Make sure you upload a whole folder WpExLinks into your <em>wp-content/plugins</em>, please keep the structure files</li>
<li>Activate both WpExLinks plugin and WpExLinks widget from your <em>Dashboard</em></li>
<li>Create a new page, give a title as you like (ex. Exchange Links) and paste the code in the textarea and publish</li>
</ul>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p75code13'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7513"><td class="code" id="p75code13"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span>wpExLinks<span style="color: #339933;">--&gt;</span></pre></td></tr></table></div>

<ul>
<li>Set WpExLinks options if you need from <em>Settings &gt; Wp Exchange Links</em> options page (default is enough to run)</li>
<li>Finished!  Now everyone want to do exchange links with you just refer to Exchange Links Page <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p>Screenshot :</p>
<p><img src="http://i36.tinypic.com/2nr1o95.jpg" alt="WpExLinks options page.  You can set website url, title, description, and email address for notification.  Also you can manage all links from here." width="450" /></p>
<p><img src="http://i34.tinypic.com/11b5dzs.jpg" alt="Example WpExLinks page submit form" /></p>
<p>Because this is BETA version, so i need input from you all.  Please report bugs here.</p>
<p>History version:</p>
<p><em>Tested up to 2.6.5</em></p>
<ul>
<li>V1.0 &#8211; 28 Sept 2008, first release WpExLinks WordPress Plugin</li>
<li>V1.1 &#8211; 7 Oct 2008, Change to HTML email, repair bugs function show list without widget, fix admin options area, add description to anchor link as title/alt</li>
<li>V1.2 &#8211; 8 Oct, Fix HTML email, add Edit Links Page!, add permalink to Exchange Link Page in Options Page, etc . Please read changelog in readme.html for details.</li>
<li>V1.3 &#8211; 17 Oct, Change CAPTCHA method hope will fix compatibility issues, add new option to use captcha or not.  Please extract to wpExLinks folder and upload all files. </li>
<li>V1.4 &#8211; 10 Nov, Change default widget to display all links or use 0 to do it, Change AJAX system using  Simple AJAX Code-Kit (SACK) to avoid &#8220;Invalid Captcha&#8221; problem, Fixed minor bugs </li>
</ul>
<blockquote><p><a title="WpExLinks WordPress Plugin" href="http://downloads.wordpress.org/plugin/wp-ex-links.zip" target="_blank"><strong>Download Code</strong></a><br />
Now hosted by <a href="http://wordpress.org/extend/plugins/wp-ex-links/">WordPress</a> <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p></blockquote>
<p>Update note :<br />
You can show links list without widget, just add this code into your themes, not post/page textarea!  Anyway you can do it if you have execPHP plugin installed in your WordPress <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p75code14'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7514"><td class="code" id="p75code14"><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><a href="http://www.php.net/function_exists"><span style="color: #990000;">function_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wpExLinksList'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>wpExLinksList<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Default will show links list in unordered list with div id=&#8221;wpExLinks&#8221; for setting in CSS and no limit number links, order by name, and ASCENDING.  Please refer to readme.html file for details.</p>
<p>Enjoy my plugin <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/btn/button_3793" title="Wordpress Exchange Links Plugin - AJAX Version" url="http://blog.smileylover.com/wordpress-exchange-links-plugin/"></script>

<p>Related posts:<ol><li><a href='http://blog.smileylover.com/making-wordpress-exchange-links-without-plugins/' rel='bookmark' title='Permanent Link: Making WordPress Exchange Links Without Plugins'>Making WordPress Exchange Links Without Plugins</a></li>
<li><a href='http://blog.smileylover.com/simple-ajax-captcha/' rel='bookmark' title='Permanent Link: Simple AJAX Captcha'>Simple AJAX Captcha</a></li>
<li><a href='http://blog.smileylover.com/free-cb-plugin-simple-invitation-invite-friends/' rel='bookmark' title='Permanent Link: Free CB Plugin Simple Invitation (Invite Friends)'>Free CB Plugin Simple Invitation (Invite Friends)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smileylover.com/wordpress-exchange-links-plugin/feed/</wfw:commentRss>
		<slash:comments>246</slash:comments>
		</item>
		<item>
		<title>Simple AJAX Captcha</title>
		<link>http://blog.smileylover.com/simple-ajax-captcha/</link>
		<comments>http://blog.smileylover.com/simple-ajax-captcha/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 18:42:31 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.smileylover.com/?p=68</guid>
		<description><![CDATA[Nowaday in Web 2.0 realm, AJAX become primary need for web developer to create a dynamic web applications. Not only web developer, but also spammer getting more dynamic and clever Usually they fill in comment box or input user to put their junk content like backlinks. To avoid this, it&#8217;s commonly to used CAPTCHA since [...]


Related posts:<ol><li><a href='http://blog.smileylover.com/ajax-with-checkbox/' rel='bookmark' title='Permanent Link: AJAX POST GET Form With Multiple Checkbox, Radio, Select Option'>AJAX POST GET Form With Multiple Checkbox, Radio, Select Option</a></li>
<li><a href='http://blog.smileylover.com/wordpress-exchange-links-plugin/' rel='bookmark' title='Permanent Link: WordPress Exchange Links Plugin &#8211; AJAX Version'>WordPress Exchange Links Plugin &#8211; AJAX Version</a></li>
<li><a href='http://blog.smileylover.com/free-cb-plugin-simple-invitation-invite-friends/' rel='bookmark' title='Permanent Link: Free CB Plugin Simple Invitation (Invite Friends)'>Free CB Plugin Simple Invitation (Invite Friends)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Nowaday in Web 2.0 realm, AJAX become primary need for web developer to create a dynamic web applications.  Not only web developer, but also spammer getting more dynamic and clever <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />     Usually they fill in comment box or input user to put their junk content like backlinks.  To avoid this, it&#8217;s commonly to used CAPTCHA since they effective enough to blocked spammer.</p>
<p>But now it&#8217;s Web 2.0!  AJAX in everywhere.  So let&#8217;s create a simple AJAX Captcha to accomodate this.  First searched for Google and found it, there&#8217;s enough resource to make a improvisation with this stuff (<a href="http://www.webcheatsheet.com/PHP/create_captcha_protection.php">How to Create CAPTCHA Protection using PHP and AJAX </a> and <a href="http://www.funkyajax.com/captcha_page.html">FunkyAJAX</a>).  I tried at home but no one of them have a complete feature but still simple <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   So i combine all resource and build this one, simple but have a full feature that i wanted!</p>
<p>You can check DEMO to get transparent on this.  I&#8217;ve included AJAX Captcha to avoid a high resource consumed (server).</p>
<blockquote><p><a title="Universal AJAX Link Checker with Captcha" href="http://rapidcheck.co.nr" target="_blank"><strong>Universal AJAX Link Checker</strong></a></p></blockquote>
<p><span id="more-68"></span><br />
First, build a simple form with textarea, single input user, img tag, and of course submit button (you can pass this).</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p68code19'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6819"><td class="code" id="p68code19"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Simple AJAX CAPTCHA by SmileyLover.Com&lt;/title&gt;
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;ajax_captcha.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form action=&quot;javascript:get(document.getElementById('myform'));&quot; name=&quot;myform&quot; id=&quot;myform&quot;&gt;
	&lt;textarea id=&quot;mytextarea&quot; name=&quot;mytextarea&quot; cols=&quot;25&quot; rows=&quot;5&quot;&gt;&lt;/textarea&gt;&lt;br /&gt;
&nbsp;
	&lt;img id=&quot;imgCaptcha&quot; src=&quot;create_image.php&quot; onclick=&quot;setTimeout('refreshimg()', 300); return false;&quot; alt=&quot;Click on me to change image&quot;/&gt;&amp;nbsp;&amp;nbsp;
	&lt;input id=&quot;txtCaptcha&quot; type=&quot;text&quot; name=&quot;txtCaptcha&quot; value=&quot;&quot; maxlength=&quot;10&quot; size=&quot;10&quot; autocomplete=&quot;off&quot;/&gt;
&nbsp;
	&lt;br /&gt;&lt;small&gt;&lt;i&gt;&lt;b&gt;* Click on the CAPTCHA to refreshing image!&lt;/b&gt;&lt;/i&gt;&lt;/small&gt;
	&lt;br /&gt;
&nbsp;
	&lt;input type=&quot;button&quot; name=&quot;button&quot; value=&quot;Submit&quot; 
	   onclick=&quot;javascript:get(this.parentNode);&quot;&gt;
	&lt;input type=&quot;submit&quot; name=&quot;button&quot; value=&quot;Normal Submit Button&quot; &gt;
&nbsp;
&lt;/form&gt;
&nbsp;
&lt;br&gt;&lt;br&gt;
Server-Response:&lt;br&gt;
&lt;span name=&quot;myspan&quot; id=&quot;myspan&quot;&gt;&lt;/span&gt;
&lt;br /&gt;&lt;br /&gt;
Powered by &lt;a href=&quot;http://blog.smileylover.com/&quot;&gt;SmileyLover.Com&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div>

<p>This form also work if you just press ENTER instead click submit button.  So now the javascript code.  Basically it&#8217;s using XMLHttpRequest like ordinary AJAX Post/Get but we also send a session from image from Captcha.  I&#8217;ve added this line into <strong>var getstr.</strong></p>
<blockquote><p>&#8220;&amp;txtCaptcha=&#8221; + encodeURI( document.getElementById(&#8220;txtCaptcha&#8221;).value) ;</p></blockquote>
<p><strong>txtCaptcha</strong> is ID being used for Captcha input user .   So we need to Captcha change dynamically when AJAX response is return.  We need this code.  Add to javascript in condition <strong>if (http_request.status == 200)</strong>.</p>
<blockquote><p>//Get a reference to CAPTCHA image<br />
img = document.getElementById(&#8216;imgCaptcha&#8217;);<br />
//Change the image<br />
img.src = &#8216;create_image.php?&#8217; + Math.random(); // Search for new image<br />
document.getElementById(&#8216;txtCaptcha&#8217;).value=&#8221;; //Reset input Captcha  after succes return</p></blockquote>
<p>There&#8217;s already information about code above.  Session is create by <strong>create_image.php</strong> itself.  For more sophiscated we need to change image when user click on it (if user can&#8217;t read Captcha) of course with AJAX.  Add this little bit code.</p>
<blockquote><p>// IMAGE REFRESHING<br />
function refreshimg()<br />
{<br />
//Get a reference to CAPTCHA image<br />
img = document.getElementById(&#8216;imgCaptcha&#8217;);<br />
//Change the image<br />
img.src = &#8216;create_image.php?&#8217; + Math.random();<br />
}</p></blockquote>
<p>So now is full Javascript code.</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p68code20'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6820"><td class="code" id="p68code20"><pre class="javascript" style="font-family:monospace;">   <span style="color: #003366; font-weight: bold;">var</span> http_request <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
   <span style="color: #003366; font-weight: bold;">function</span> makeRequest<span style="color: #009900;">&#40;</span>url<span style="color: #339933;">,</span> parameters<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      http_request <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
      <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">XMLHttpRequest</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">// Mozilla, Safari,...</span>
         http_request <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>http_request.<span style="color: #660066;">overrideMimeType</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
         	<span style="color: #006600; font-style: italic;">// set type accordingly to anticipated content type</span>
            <span style="color: #006600; font-style: italic;">//http_request.overrideMimeType('text/xml');</span>
            http_request.<span style="color: #660066;">overrideMimeType</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'text/html'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">ActiveXObject</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">// IE</span>
         <span style="color: #000066; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
            http_request <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Msxml2.XMLHTTP&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000066; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
               http_request <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft.XMLHTTP&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>
         <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
      <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>http_request<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
         <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Cannot create XMLHTTP instance'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
      http_request.<span style="color: #660066;">onreadystatechange</span> <span style="color: #339933;">=</span> alertContents<span style="color: #339933;">;</span>
      http_request.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'GET'</span><span style="color: #339933;">,</span> url <span style="color: #339933;">+</span> parameters<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      http_request.<span style="color: #660066;">send</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
&nbsp;
   <span style="color: #003366; font-weight: bold;">function</span> alertContents<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>http_request.<span style="color: #660066;">readyState</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
         <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>http_request.<span style="color: #000066;">status</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #006600; font-style: italic;">//alert(http_request.responseText);</span>
            result <span style="color: #339933;">=</span> http_request.<span style="color: #660066;">responseText</span><span style="color: #339933;">;</span>
            document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'myspan'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> result<span style="color: #339933;">;</span> 
			<span style="color: #006600; font-style: italic;">//Get a reference to CAPTCHA image</span>
			img <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'imgCaptcha'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
			<span style="color: #006600; font-style: italic;">//Change the image</span>
			img.<span style="color: #660066;">src</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'create_image.php?'</span> <span style="color: #339933;">+</span> Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Search for new image</span>
			document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'txtCaptcha'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">value</span><span style="color: #339933;">=</span><span style="color: #3366CC;">''</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//Reset input Captcha  after succes return 			</span>
         <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'There was a problem with the request.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
   <span style="color: #009900;">&#125;</span>
&nbsp;
   <span style="color: #003366; font-weight: bold;">function</span> get<span style="color: #009900;">&#40;</span>obj<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #003366; font-weight: bold;">var</span> getstr <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;?&quot;</span> <span style="color: #339933;">+</span>
			<span style="color: #3366CC;">&quot;&amp;mytextarea=&quot;</span> <span style="color: #339933;">+</span> <span style="color: #000066; font-weight: bold;">encodeURI</span><span style="color: #009900;">&#40;</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;mytextarea&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span>
			<span style="color: #3366CC;">&quot;&amp;txtCaptcha=&quot;</span> <span style="color: #339933;">+</span> <span style="color: #000066; font-weight: bold;">encodeURI</span><span style="color: #009900;">&#40;</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;txtCaptcha&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">value</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
      makeRequest<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'get.php'</span><span style="color: #339933;">,</span> getstr<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// IMAGE REFRESHING</span>
<span style="color: #003366; font-weight: bold;">function</span> refreshimg<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #006600; font-style: italic;">//Get a reference to CAPTCHA image</span>
	img <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'imgCaptcha'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
	<span style="color: #006600; font-style: italic;">//Change the image</span>
	img.<span style="color: #660066;">src</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'create_image.php?'</span> <span style="color: #339933;">+</span> Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Now look for <strong>create_image.php</strong>, it&#8217;s common php generate Captcha with <strong>session_start()</strong> function and <strong>$_SESSION["name_session"]</strong>.  You can download all source code in the end of this posting.</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p68code21'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6821"><td class="code" id="p68code21"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #666666; font-style: italic;">//Start the session so we can store what the security code actually is</span>
<a href="http://www.php.net/session_start"><span style="color: #990000;">session_start</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Send a generated image to the browser </span>
create_image<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> create_image<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> 
<span style="color: #009900;">&#123;</span> 
    <span style="color: #666666; font-style: italic;">//Let's generate a totally random string using md5 </span>
    <span style="color: #000088;">$md5_hash</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/md5"><span style="color: #990000;">md5</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/rand"><span style="color: #990000;">rand</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">999</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
    <span style="color: #666666; font-style: italic;">//We don't need a 32 character long string so we trim it down to 5 </span>
    <span style="color: #000088;">$security_code</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$md5_hash</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">15</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
    <span style="color: #666666; font-style: italic;">//Set the session to store the security code</span>
    <span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;security_code&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$security_code</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">//Set the image width and height </span>
    <span style="color: #000088;">$im</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/imagecreate"><span style="color: #990000;">imagecreate</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">80</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">25</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">//white background and blue text</span>
    <span style="color: #000088;">$bg</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/imagecolorallocate"><span style="color: #990000;">imagecolorallocate</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</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: #000088;">$textcolor</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/imagecolorallocate"><span style="color: #990000;">imagecolorallocate</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">128</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>
&nbsp;
    <span style="color: #666666; font-style: italic;">//Add randomly generated string in white to the image</span>
    <a href="http://www.php.net/imagestring"><span style="color: #990000;">ImageString</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">20</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">8</span><span style="color: #339933;">,</span> <span style="color: #000088;">$security_code</span><span style="color: #339933;">,</span> <span style="color: #000088;">$textcolor</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
    <span style="color: #666666; font-style: italic;">//Tell the browser what kind of file is come in </span>
    <a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><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> 
&nbsp;
    <span style="color: #666666; font-style: italic;">//Output the newly created image in jpeg format </span>
    <a href="http://www.php.net/imagejpeg"><span style="color: #990000;">ImageJpeg</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
    <span style="color: #666666; font-style: italic;">//Free up resources</span>
    <a href="http://www.php.net/imagedestroy"><span style="color: #990000;">ImageDestroy</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Now the last script.  For example we want <strong>get.php</strong> for handling all input from AJAX.  So let&#8217;s look this simple script.</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p68code22'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6822"><td class="code" id="p68code22"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//Continue the session</span>
<a href="http://www.php.net/session_start"><span style="color: #990000;">session_start</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;txtCaptcha&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;security_code&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;txtCaptcha&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;security_code&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//If CAPTCHA success</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Success &lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>
	<a href="http://www.php.net/print_r"><span style="color: #990000;">print_r</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">//If CAPTCHA invalid!</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'You entered an invalid CAPTCHA! &lt;br /&gt;Please fill in again ...'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Simple right?  Since we used GET method for AJAX request fo we define input user by <strong>$_GET</strong>.  As i promised, you can download all code here.</p>
<blockquote><p><a title="Download AJAX Captcha Code" href="http://rapidshare.com/files/148361490/Simple_AJAX_Captcha.zip" target="_blank"><strong>Download AJAX Captcha Code</strong></a></p></blockquote>
<div class="wp-caption alignleft" style="width: 436px"><img alt="Simple AJAX Captcha Demo" src="http://i38.tinypic.com/2u9hook.gif" title="Simple AJAX Captcha Demo" width="426" height="384" /><p class="wp-caption-text">Simple AJAX Captcha Demo</p></div>
<p>Have a nice day <img src='http://blog.smileylover.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/btn/button_3793" title="Simple AJAX Captcha" url="http://blog.smileylover.com/simple-ajax-captcha/"></script>

<p>Related posts:<ol><li><a href='http://blog.smileylover.com/ajax-with-checkbox/' rel='bookmark' title='Permanent Link: AJAX POST GET Form With Multiple Checkbox, Radio, Select Option'>AJAX POST GET Form With Multiple Checkbox, Radio, Select Option</a></li>
<li><a href='http://blog.smileylover.com/wordpress-exchange-links-plugin/' rel='bookmark' title='Permanent Link: WordPress Exchange Links Plugin &#8211; AJAX Version'>WordPress Exchange Links Plugin &#8211; AJAX Version</a></li>
<li><a href='http://blog.smileylover.com/free-cb-plugin-simple-invitation-invite-friends/' rel='bookmark' title='Permanent Link: Free CB Plugin Simple Invitation (Invite Friends)'>Free CB Plugin Simple Invitation (Invite Friends)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.smileylover.com/simple-ajax-captcha/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
