<?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>eInternals &#187; Web development</title>
	<atom:link href="http://www.einternals.com/blog/category/web-development/feed" rel="self" type="application/rss+xml" />
	<link>http://www.einternals.com/blog</link>
	<description>Not Just another technology blog</description>
	<lastBuildDate>Wed, 12 Aug 2009 12:44:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Disable right click menu in Flash (swf files)</title>
		<link>http://www.einternals.com/blog/web-development/flashflex/disable-right-click-menu-in-flash</link>
		<comments>http://www.einternals.com/blog/web-development/flashflex/disable-right-click-menu-in-flash#comments</comments>
		<pubDate>Sat, 02 Feb 2008 05:23:07 +0000</pubDate>
		<dc:creator>kiranvj</dc:creator>
				<category><![CDATA[Flash/Flex]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Right Click]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://www.einternals.com/blog/general/disable-right-click-menu-in-flash</guid>
		<description><![CDATA[<p>There are times when you have to disable the default right click menu on flash files on your webpages.</p>
<p>Uza has a suggested a method to completely   disable the flash right menu.
Check the article link at his website  http://www.uza.lt/blog/2007/08/solved-right-click-in-as3
and the Demo here http://www.uza.lt/rightclick/</p>
<p>You can also download the project files from the Google code
Project [...]]]></description>
			<content:encoded><![CDATA[<p>There are times when you have to disable the default right click menu on flash files on your webpages.</p>
<p><a href="http://www.uza.lt/" target="_blank">Uza</a> has a suggested a method to completely   disable the flash right menu.<br />
Check the article link at his website <a href="http://www.uza.lt/blog/2007/08/solved-right-click-in-as3" target="_blank"> http://www.uza.lt/blog/2007/08/solved-right-click-in-as3</a><br />
and the Demo here <a href="http://www.uza.lt/rightclick/" target="_blank">http://www.uza.lt/rightclick/</a></p>
<p>You can also download the project files from the Google code<br />
Project website:<br />
<a href="http://code.google.com/p/custom-context-menu/" target="_blank">http://code.google.com/p/custom-context-menu/</a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash&amp;title=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29&amp;bodytext=There%20are%20times%20when%20you%20have%20to%20disable%20the%20default%20right%20click%20menu%20on%20flash%20files%20on%20your%20webpages.%0D%0A%0D%0AUza%20has%20a%20suggested%20a%20method%20to%20completely%20%20%20disable%20the%20flash%20right%20menu.%0D%0ACheck%20the%20article%20link%20at%20his%20website%20%20http%3A%2F%2Fwww.uza.lt%2Fblog%2F2007%2F0" title="Digg"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash&amp;title=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29&amp;notes=There%20are%20times%20when%20you%20have%20to%20disable%20the%20default%20right%20click%20menu%20on%20flash%20files%20on%20your%20webpages.%0D%0A%0D%0AUza%20has%20a%20suggested%20a%20method%20to%20completely%20%20%20disable%20the%20flash%20right%20menu.%0D%0ACheck%20the%20article%20link%20at%20his%20website%20%20http%3A%2F%2Fwww.uza.lt%2Fblog%2F2007%2F0" title="del.icio.us"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29%20-%20http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash" title="Twitter"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash&amp;title=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29" title="DZone"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.linkter.hu/index.php?action=suggest_link&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash&amp;title=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29" title="Linkter"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/linkter.png" title="Linkter" alt="Linkter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash&amp;h=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29" title="NewsVine"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash&amp;title=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29" title="Reddit"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://slashdot.org/bookmark.pl?title=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash" title="Slashdot"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash&amp;title=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29" title="StumbleUpon"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash" title="Technorati"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://co.mments.com/track?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash&amp;title=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29" title="co.mments"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/co.mments.png" title="co.mments" alt="co.mments" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash&amp;t=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29" title="Facebook"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash&amp;title=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29&amp;source=eInternals+Not+Just+another+technology+blog&amp;summary=There%20are%20times%20when%20you%20have%20to%20disable%20the%20default%20right%20click%20menu%20on%20flash%20files%20on%20your%20webpages.%0D%0A%0D%0AUza%20has%20a%20suggested%20a%20method%20to%20completely%20%20%20disable%20the%20flash%20right%20menu.%0D%0ACheck%20the%20article%20link%20at%20his%20website%20%20http%3A%2F%2Fwww.uza.lt%2Fblog%2F2007%2F0" title="LinkedIn"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash&amp;title=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29" title="Live"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash&amp;t=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29" title="MySpace"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fflashflex%2Fdisable-right-click-menu-in-flash&amp;t=Disable%20right%20click%20menu%20in%20Flash%20%28swf%20files%29&amp;s=There%20are%20times%20when%20you%20have%20to%20disable%20the%20default%20right%20click%20menu%20on%20flash%20files%20on%20your%20webpages.%0D%0A%0D%0AUza%20has%20a%20suggested%20a%20method%20to%20completely%20%20%20disable%20the%20flash%20right%20menu.%0D%0ACheck%20the%20article%20link%20at%20his%20website%20%20http%3A%2F%2Fwww.uza.lt%2Fblog%2F2007%2F0" title="Tumblr"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.einternals.com/blog/web-development/flashflex/disable-right-click-menu-in-flash/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Change login link to logout link.</title>
		<link>http://www.einternals.com/blog/web-development/php/change-login-link-to-logout-link</link>
		<comments>http://www.einternals.com/blog/web-development/php/change-login-link-to-logout-link#comments</comments>
		<pubDate>Sat, 29 Dec 2007 08:10:00 +0000</pubDate>
		<dc:creator>kiranvj</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.einternals.com/blog/web-development/php/change-login-link-to-logout-link</guid>
		<description><![CDATA[<p>There are times when you have to change the login link in your webpage to a logout link when a user successfully logged in.</p>
<p>Here is a simple way to do it in PHP</p>
<p>Suppose your menu is</p>
<p>Link 1
Login
Link 2</p>
<p>the corresponding HTML code will look like</p>

&#60;a href='somepage.php'&#62;Link 1&#60;/a&#62;
&#60;a href='login.php'&#62;Login&#60;/a&#62;
&#60;a href='some_other_link.php'&#62;Link 2&#60;/a&#62;
<p>After successful login most probably you will [...]]]></description>
			<content:encoded><![CDATA[<p>There are times when you have to change the login link in your webpage to a logout link when a user successfully logged in.</p>
<p>Here is a simple way to do it in PHP</p>
<p>Suppose your menu is</p>
<p>Link 1<br />
Login<br />
Link 2</p>
<p>the corresponding HTML code will look like</p>
<pre>
&lt;a href='somepage.php'&gt;Link 1&lt;/a&gt;
&lt;a href='login.php'&gt;Login&lt;/a&gt;
&lt;a href='some_other_link.php'&gt;Link 2&lt;/a&gt;</pre>
<p>After successful login most probably you will set a session. Say the name of the session variable is <em>username</em><br />
Then the code  for the menu will look like</p>
<pre>&lt;a href='somepage.php'&gt;Link 1&lt;/a&gt;
&lt;?php
if(isset($_SESSION['username']) &amp;&amp; $_SESSION['username']!="")
{
echo("&lt;a href='logout.php'&gt;Logout&lt;/a&gt; ");
echo($_SESSION['username']);// displays username
}
else
{
echo("&lt;a href='login.php'&gt;Login&lt;/a&gt; ");
}
?&gt;
&lt;a href='some_other_link.php'&gt;Link 2&lt;/a&gt;
</pre>
<p>and also make sure to add</p>
<pre>&lt;?php
session_start();
?&gt;</pre>
<p>on top of your page.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link&amp;title=Change%20login%20link%20to%20logout%20link.&amp;bodytext=There%20are%20times%20when%20you%20have%20to%20change%20the%20login%20link%20in%20your%20webpage%20to%20a%20logout%20link%20when%20a%20user%20successfully%20logged%20in.%0D%0A%0D%0AHere%20is%20a%20simple%20way%20to%20do%20it%20in%20PHP%0D%0A%0D%0ASuppose%20your%20menu%20is%0D%0A%0D%0ALink%201%0D%0ALogin%0D%0ALink%202%0D%0A%0D%0Athe%20corresponding%20HTML%20code%20will%20l" title="Digg"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link&amp;title=Change%20login%20link%20to%20logout%20link.&amp;notes=There%20are%20times%20when%20you%20have%20to%20change%20the%20login%20link%20in%20your%20webpage%20to%20a%20logout%20link%20when%20a%20user%20successfully%20logged%20in.%0D%0A%0D%0AHere%20is%20a%20simple%20way%20to%20do%20it%20in%20PHP%0D%0A%0D%0ASuppose%20your%20menu%20is%0D%0A%0D%0ALink%201%0D%0ALogin%0D%0ALink%202%0D%0A%0D%0Athe%20corresponding%20HTML%20code%20will%20l" title="del.icio.us"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=Change%20login%20link%20to%20logout%20link.%20-%20http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link" title="Twitter"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link&amp;title=Change%20login%20link%20to%20logout%20link." title="DZone"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.linkter.hu/index.php?action=suggest_link&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link&amp;title=Change%20login%20link%20to%20logout%20link." title="Linkter"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/linkter.png" title="Linkter" alt="Linkter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link&amp;h=Change%20login%20link%20to%20logout%20link." title="NewsVine"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link&amp;title=Change%20login%20link%20to%20logout%20link." title="Reddit"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://slashdot.org/bookmark.pl?title=Change%20login%20link%20to%20logout%20link.&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link" title="Slashdot"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link&amp;title=Change%20login%20link%20to%20logout%20link." title="StumbleUpon"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link" title="Technorati"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://co.mments.com/track?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link&amp;title=Change%20login%20link%20to%20logout%20link." title="co.mments"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/co.mments.png" title="co.mments" alt="co.mments" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link&amp;t=Change%20login%20link%20to%20logout%20link." title="Facebook"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link&amp;title=Change%20login%20link%20to%20logout%20link.&amp;source=eInternals+Not+Just+another+technology+blog&amp;summary=There%20are%20times%20when%20you%20have%20to%20change%20the%20login%20link%20in%20your%20webpage%20to%20a%20logout%20link%20when%20a%20user%20successfully%20logged%20in.%0D%0A%0D%0AHere%20is%20a%20simple%20way%20to%20do%20it%20in%20PHP%0D%0A%0D%0ASuppose%20your%20menu%20is%0D%0A%0D%0ALink%201%0D%0ALogin%0D%0ALink%202%0D%0A%0D%0Athe%20corresponding%20HTML%20code%20will%20l" title="LinkedIn"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link&amp;title=Change%20login%20link%20to%20logout%20link." title="Live"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link&amp;t=Change%20login%20link%20to%20logout%20link." title="MySpace"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fchange-login-link-to-logout-link&amp;t=Change%20login%20link%20to%20logout%20link.&amp;s=There%20are%20times%20when%20you%20have%20to%20change%20the%20login%20link%20in%20your%20webpage%20to%20a%20logout%20link%20when%20a%20user%20successfully%20logged%20in.%0D%0A%0D%0AHere%20is%20a%20simple%20way%20to%20do%20it%20in%20PHP%0D%0A%0D%0ASuppose%20your%20menu%20is%0D%0A%0D%0ALink%201%0D%0ALogin%0D%0ALink%202%0D%0A%0D%0Athe%20corresponding%20HTML%20code%20will%20l" title="Tumblr"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.einternals.com/blog/web-development/php/change-login-link-to-logout-link/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to enable or disable Image Toolbar in Internet Explorer</title>
		<link>http://www.einternals.com/blog/web-development/how-to-enable-or-disable-image-toolbar-in-internet-explorer</link>
		<comments>http://www.einternals.com/blog/web-development/how-to-enable-or-disable-image-toolbar-in-internet-explorer#comments</comments>
		<pubDate>Tue, 25 Dec 2007 07:42:53 +0000</pubDate>
		<dc:creator>kiranvj</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Internet explorer]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.einternals.com/blog/web-development/how-to-enable-or-disable-image-toolbar-in-internet-explorer</guid>
		<description><![CDATA[<p>Image Toolbar is a small toolbar shown in Intetnet         Explorer above an image when the mouse moves over the image. The         purpose of the Image Toolbar is to save the image, print the image,      [...]]]></description>
			<content:encoded><![CDATA[<p>Image Toolbar is a small toolbar shown in Intetnet         Explorer above an image when the mouse moves over the image. The         purpose of the Image Toolbar is to save the image, print the image,         mail the image and to open the My Pictures folder.</p>
<p><img src="http://www.einternals.com/blog/wp-content/uploads/2007/12/toolbar.gif" alt="Image toolbar in internet explorer" /><br />
<span style="font-size: 75%">Image Toolbar in Internet Explorer</span></p>
<p>The usual method of saving an image from the Internet         explorer is by right clicking the image and selecting Save Picture         as…. In some sites the web designers disable the right click         the option, so the user cannot right click the image and click         Save the Picture….<br />
But in that case also the Image Toolbar will display.</p>
<p><strong><span>Disabling the Image Toolbar</span></strong><br />
<span>Add an attribute GALLERYIMG in the img tag</span></p>
<pre>&lt;img src="imagesimage1.jpg" galleryimg="false" /&gt;</pre>
<p>This will disable the Image Toolbar</p>
<p><strong><span>Enabling the Image Toolbar</span></strong><br />
<span>In small images the Image Toolbar will               not be shown automatically. If we want to show the Image Toolbar               in small images we have to enable it.</span></p>
<pre>&lt;IMG GALLERYIMG="true" src="imagesimage1.jpg" /&gt;</pre>
<p>This will enable the Image Toolbar.</p>
<p>The above mentioned techniques will only disable/enable         the Image Toolbar for only the particular image.</p>
<table style="height: 198px;" border="0" cellspacing="0" cellpadding="2" width="428">
<tbody>
<tr>
<td><img src="http://www.einternals.com/blog/wp-content/uploads/2007/12/toolbar1.gif" alt="Image toolbar enabled" /></td>
<td><img src="http://www.einternals.com/blog/wp-content/uploads/2007/12/toolbar1.gif" alt="Image toolbar disabled" /></td>
</tr>
<tr>
<td><span style="font-size: 75%">Toolbar Enabled</span></td>
<td><span style="font-size: 75%">Toolbar disabled</span></td>
</tr>
</tbody>
</table>
<p><span>To enable/disable the Toolbar on the         entire web page use this code.</span><br />
<span> Insert inside head tag </span></p>
<pre>&lt;HEAD&gt;
&lt;META HTTP-EQUIV="imagetoolbar" CONTENT="false"&gt;
&lt;/HEAD&gt;</pre>
<p>Setting GALLERYIMG=&#8221;true&#8221; in an IMG tag will override this setting, and the Image Toolbar will be show for that image.<br />
<strong><br />
Permanently disable the Image Toolbar in Internet Explorer</strong></p>
<p>Either right-click the toolbar when it is displayed and click Disable image toolbar.<br />
Or<br />
Go to the Advanced tab of the Internet Options which is located on the Tools menu within Internet Explorer. Clear the Enable Image Toolbar check box and click OK. After the image toolbar is disabled, no settings can override this and the image toolbar will not be displayed again until the user selects Enable Image Toolbar.</p>
<p><strong>Remarks:</strong><br />
Please not that you can also use the <em>yes</em> instead of <em>true</em> and <em>no</em> instead of <em>false</em>.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer&amp;title=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer&amp;bodytext=Image%20Toolbar%20is%20a%20small%20toolbar%20shown%20in%20Intetnet%20%20%20%20%20%20%20%20%20Explorer%20above%20an%20image%20when%20the%20mouse%20moves%20over%20the%20image.%20The%20%20%20%20%20%20%20%20%20purpose%20of%20the%20Image%20Toolbar%20is%20to%20save%20the%20image%2C%20print%20the%20image%2C%20%20%20%20%20%20%20%20%20mail%20the%20image%20and%20to%20open%20the%20My%20Pictures" title="Digg"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer&amp;title=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer&amp;notes=Image%20Toolbar%20is%20a%20small%20toolbar%20shown%20in%20Intetnet%20%20%20%20%20%20%20%20%20Explorer%20above%20an%20image%20when%20the%20mouse%20moves%20over%20the%20image.%20The%20%20%20%20%20%20%20%20%20purpose%20of%20the%20Image%20Toolbar%20is%20to%20save%20the%20image%2C%20print%20the%20image%2C%20%20%20%20%20%20%20%20%20mail%20the%20image%20and%20to%20open%20the%20My%20Pictures" title="del.icio.us"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer%20-%20http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer" title="Twitter"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer&amp;title=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer" title="DZone"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.linkter.hu/index.php?action=suggest_link&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer&amp;title=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer" title="Linkter"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/linkter.png" title="Linkter" alt="Linkter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer&amp;h=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer" title="NewsVine"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer&amp;title=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer" title="Reddit"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://slashdot.org/bookmark.pl?title=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer" title="Slashdot"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer&amp;title=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer" title="StumbleUpon"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer" title="Technorati"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://co.mments.com/track?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer&amp;title=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer" title="co.mments"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/co.mments.png" title="co.mments" alt="co.mments" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer&amp;t=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer" title="Facebook"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer&amp;title=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer&amp;source=eInternals+Not+Just+another+technology+blog&amp;summary=Image%20Toolbar%20is%20a%20small%20toolbar%20shown%20in%20Intetnet%20%20%20%20%20%20%20%20%20Explorer%20above%20an%20image%20when%20the%20mouse%20moves%20over%20the%20image.%20The%20%20%20%20%20%20%20%20%20purpose%20of%20the%20Image%20Toolbar%20is%20to%20save%20the%20image%2C%20print%20the%20image%2C%20%20%20%20%20%20%20%20%20mail%20the%20image%20and%20to%20open%20the%20My%20Pictures" title="LinkedIn"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer&amp;title=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer" title="Live"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer&amp;t=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer" title="MySpace"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fhow-to-enable-or-disable-image-toolbar-in-internet-explorer&amp;t=How%20to%20enable%20or%20disable%20Image%20Toolbar%20in%20Internet%20Explorer&amp;s=Image%20Toolbar%20is%20a%20small%20toolbar%20shown%20in%20Intetnet%20%20%20%20%20%20%20%20%20Explorer%20above%20an%20image%20when%20the%20mouse%20moves%20over%20the%20image.%20The%20%20%20%20%20%20%20%20%20purpose%20of%20the%20Image%20Toolbar%20is%20to%20save%20the%20image%2C%20print%20the%20image%2C%20%20%20%20%20%20%20%20%20mail%20the%20image%20and%20to%20open%20the%20My%20Pictures" title="Tumblr"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.einternals.com/blog/web-development/how-to-enable-or-disable-image-toolbar-in-internet-explorer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Implementing CAPTCHA using PHP</title>
		<link>http://www.einternals.com/blog/web-development/php/implementing-captcha-using-php</link>
		<comments>http://www.einternals.com/blog/web-development/php/implementing-captcha-using-php#comments</comments>
		<pubDate>Tue, 25 Dec 2007 05:41:00 +0000</pubDate>
		<dc:creator>kiranvj</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.einternals.com/blog/php/implementing-captcha-using-php</guid>
		<description><![CDATA[<p>How to implement a CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) using PHP</p>
<p>Implementing CAPTCHA using PHP</p>
<p>  </p>
<p>Steps involved in this tutorial:</p>

    Create       a  background image, the more       messier the more better. 
  [...]]]></description>
			<content:encoded><![CDATA[<p>How to implement a CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) using PHP</p>
<p><span class="edgeatext"><strong>Implementing CAPTCHA using PHP</strong></span></p>
<p><img src="http://www.einternals.com/blog/wp-content/uploads/2007/12/captcha_demo1.png" alt="captcha" />  <img src="http://www.einternals.com/blog/wp-content/uploads/2007/12/captcha_demo2.png" alt="captcha" style="margin-left: 5px" /></p>
<p>Steps involved in this tutorial:</p>
<ol>
<li><span class="edgeatext">    Create       a  background image, the more       messier the more better. </span></li>
<li><span class="edgeatext">    Load a       font file to display the CAPTCHA text</span></li>
<li><span class="edgeatext">    Generate       a random unique text</span></li>
<li><span class="edgeatext">    Store       the generated text in a Session variable to be used later for validation</span></li>
<li><span class="edgeatext">    Write       the CAPTCHA text to the image created in Step 1</span></li>
<li><span class="edgeatext">    Generate       the CAPTCHA image</span></li>
<li><span class="edgeatext"> Also created a php page with the CAPTCHA image,  a text box for input and a Submit button to show a working model (this step is not explained in detail, its simple PHP code, download and check the source files)</span></li>
</ol>
<p><a href="http://www.einternals.com/codeboxsk/captcha/" target="_blank"> <span style="font-weight: bold">Click here for a working model</span></a><br />
<span id="more-3"></span><br />
<span class="edgeatext">  The first thing I did was opened Photoshop and created this  image to use as a background image</span></p>
<p><img src="http://www.einternals.com/blog/wp-content/uploads/2007/12/captcha1.png" alt="captcha1.png" /></p>
<p>If you don’t have Photoshop don’t worry, any image editor will do. Even M$ Paint is enough. Just create an image with random colors. Save the image in PNG format with filename captcha.png. If you don’t like PNG , save in the format you like and use the appropriate function to load image.</p>
<p>Ok now the background image is ready.</p>
<p>Using the php function imagecreatefrompng load the image we  just created using the code</p>
<pre>$captchaImage = imagecreatefrompng("captcha.png");</pre>
<p>Next using the php function imageloadfont , load a font to  display the CAPTCHA text.</p>
<p>The parameter of the imageloadfont function is a font filename. I tried using a TTF font file. But somehow it doesn’t work. The possible reason for this, from php.net (http://au3.php.net/manual/en/function.imageloadfont.php)</p>
<p>“ The font file format is currently binary and architecture dependent. This means you should generate the font files on the same type of CPU as the machine you are running PHP on.”</p>
<p>So I created a GD Font (.gdf) file. You can create a .gdf  file from TTF using <a href="http://www.wedwick.com/wftopf.exe" target="_blank">http://www.wedwick.com/wftopf.exe</a> or <a href="http://www.puremango.co.uk/cm_fontmaker_114.php" target="_blank">http://www.puremango.co.uk/cm_fontmaker_114.php</a> or download some good GDF fonts from <a href="http://www.widgnet.com/gdf_fonts/fonts.html" target="_blank">http://www.widgnet.com/gdf_fonts/fonts.html</a><br />
After loading the font the next step is to generate a random, unique string to use as CAPTCHA text.  This is how the CAPTCHA text is created</p>
<pre> $captchaText = substr(md5(uniqid('')),-9,9);</pre>
<p>Generate a string using uniqid(), MD5 it, extract the last 9  characters using substr()</p>
<p>Now store this generated text in some session variable for later validation. You can also store this generated text in a cookie or database instead of a session variable.</p>
<p>Now write this generated string on the background image we  created earlier. For this we use the function imagestring()</p>
<p>Output the image in PNG format using imagepng() . Now you  will have an image with a random, unique string written in it.</p>
<p>Another advantage of this code is, to display the CAPTCHA image you only need to include a image tag in your webpage and give the source as capthca.php. Then the CAPTCHA image will be displayed.</p>
<p>Eg :</p>
<pre> &lt;img src="captcha.php" name="captcha" width="233" height="49" &gt;</pre>
<p>I have also created a php file to show its working. You can  download the full files with some additional GD fonts <a href="http://code.box.sk/vault.dload.php?fid=263">here</a>.</p>
<pre style="font-family: Monospace"><span style="color: #ff0000">&lt;?php</span>
<span style="color: #ff6600">/***
 * File : captcha.php
 * Description : Creating a captha image and
 * store the text in a session variable
 * Author : Kiran Paul V.J. aka kiranvj aka human
 * License : Freeware
 * Last update : 22-Aug-2007
 */

  </span><span style="color: #ff6600">// Initialize session data</span>
<span style="color: #0000ff">session_start();</span>
<span style="color: #ff6600">// all images in this file is of PNG format,
// there is not specific reason for that.
// this line is used to set the header of the page
// setting the header to image/png means this page
// contians data of image-&gt;PNG type</span>
<span style="color: #0000ff">header(</span><span style="color: #cc0000">"Content-type: image/png"</span><span style="color: #0000ff">)</span>;

<span style="color: #ff6600">// create a new image resource from a file</span>
$captchaImage <span style="color: #0000ff">= imagecreatefrompng(</span><span style="color: #cc0000">"captcha.png"</span><span style="color: #0000ff">)
or die(</span><span style="color: #cc0000">"Cannot Initialize new GD image stream"</span><span style="color: #0000ff">)</span>;

<span style="color: #ff6600">//Loads a new font from a file</span>
$captchaFont <span style="color: #0000ff">= imageloadfont(</span><span style="color: #cc0000">"anonymous.gdf"</span><span style="color: #0000ff">)</span>;

<span style="color: #ff6600">// Create the captcha text with some manipulation</span>
$captchaText = <span style="color: #0000ff">substr(md5(uniqid(</span>''<span style="color: #0000ff">))</span>,<span style="color: #0000ff">-</span><span style="color: #ff0000">9</span>,<span style="color: #ff0000">9</span><span style="color: #0000ff">)</span>;

<span style="color: #ff6600">// stores the captha text in a session variable</span>
<span style="color: #0000ff">$_SESSION[</span><span style="color: #cc0000">&#39;session_captchaText&#39;</span><span style="color: #0000ff">] = </span>$captchaText;

<span style="color: #ff6600">// Allocating color for captcha text to be used
// in imagestring function</span>
$captchaColor = <span style="color: #0000ff">imagecolorallocate(</span>$captchaImage,<span style="color: #ff0000">0</span>,<span style="color: #ff0000">0</span>,<span style="color: #ff0000">0</span><span style="color: #0000ff">)</span>;

<span style="color: #ff6600">// drawing the string </span>
<span style="color: #0000ff">imagestring(</span>$captchaImage,$captchaFont,<span style="color: #0000ff">15</span>,<span style="color: #0000ff">5</span>,$captchaText,$captchaColor<span style="color: #0000ff">)</span>;

<span style="color: #ff6600">// Outputs the captha image in PNG format.
// You can change the image format using
// imagejpeg,imagegif ,imagewbmp etc.</span>
<span style="color: #0000ff">imagepng(</span>$captchaImage<span style="color: #0000ff">)</span>;

<span style="color: #ff6600">//frees memory</span>
<span style="color: #0000ff">imagedestroy(</span>$captchaImage<span style="color: #0000ff">)</span>;
<p style="color: #ff0000">?&gt;
</pre>
<p><a href="http://code.box.sk/vault.dload.php?fid=263">Download full source</a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php&amp;title=Implementing%20CAPTCHA%20using%20PHP&amp;bodytext=How%20to%20implement%20a%20CAPTCHA%20%28Completely%20Automated%20Public%20Turing%20test%20to%20tell%20Computers%20and%20Humans%20Apart%29%20using%20PHP%0D%0A%0D%0AImplementing%20CAPTCHA%20using%20PHP%0D%0A%0D%0A%20%20%0D%0A%0D%0ASteps%20involved%20in%20this%20tutorial%3A%0D%0A%0D%0A%09%20%20%20%20Create%20%20%20%20%20%20%20a%20%20background%20image%2C%20the%20more%20%20%20%20%20%20%20mes" title="Digg"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php&amp;title=Implementing%20CAPTCHA%20using%20PHP&amp;notes=How%20to%20implement%20a%20CAPTCHA%20%28Completely%20Automated%20Public%20Turing%20test%20to%20tell%20Computers%20and%20Humans%20Apart%29%20using%20PHP%0D%0A%0D%0AImplementing%20CAPTCHA%20using%20PHP%0D%0A%0D%0A%20%20%0D%0A%0D%0ASteps%20involved%20in%20this%20tutorial%3A%0D%0A%0D%0A%09%20%20%20%20Create%20%20%20%20%20%20%20a%20%20background%20image%2C%20the%20more%20%20%20%20%20%20%20mes" title="del.icio.us"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=Implementing%20CAPTCHA%20using%20PHP%20-%20http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php" title="Twitter"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php&amp;title=Implementing%20CAPTCHA%20using%20PHP" title="DZone"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.linkter.hu/index.php?action=suggest_link&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php&amp;title=Implementing%20CAPTCHA%20using%20PHP" title="Linkter"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/linkter.png" title="Linkter" alt="Linkter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php&amp;h=Implementing%20CAPTCHA%20using%20PHP" title="NewsVine"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php&amp;title=Implementing%20CAPTCHA%20using%20PHP" title="Reddit"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://slashdot.org/bookmark.pl?title=Implementing%20CAPTCHA%20using%20PHP&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php" title="Slashdot"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php&amp;title=Implementing%20CAPTCHA%20using%20PHP" title="StumbleUpon"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php" title="Technorati"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://co.mments.com/track?url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php&amp;title=Implementing%20CAPTCHA%20using%20PHP" title="co.mments"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/co.mments.png" title="co.mments" alt="co.mments" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php&amp;t=Implementing%20CAPTCHA%20using%20PHP" title="Facebook"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php&amp;title=Implementing%20CAPTCHA%20using%20PHP&amp;source=eInternals+Not+Just+another+technology+blog&amp;summary=How%20to%20implement%20a%20CAPTCHA%20%28Completely%20Automated%20Public%20Turing%20test%20to%20tell%20Computers%20and%20Humans%20Apart%29%20using%20PHP%0D%0A%0D%0AImplementing%20CAPTCHA%20using%20PHP%0D%0A%0D%0A%20%20%0D%0A%0D%0ASteps%20involved%20in%20this%20tutorial%3A%0D%0A%0D%0A%09%20%20%20%20Create%20%20%20%20%20%20%20a%20%20background%20image%2C%20the%20more%20%20%20%20%20%20%20mes" title="LinkedIn"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php&amp;title=Implementing%20CAPTCHA%20using%20PHP" title="Live"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php&amp;t=Implementing%20CAPTCHA%20using%20PHP" title="MySpace"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.einternals.com%2Fblog%2Fweb-development%2Fphp%2Fimplementing-captcha-using-php&amp;t=Implementing%20CAPTCHA%20using%20PHP&amp;s=How%20to%20implement%20a%20CAPTCHA%20%28Completely%20Automated%20Public%20Turing%20test%20to%20tell%20Computers%20and%20Humans%20Apart%29%20using%20PHP%0D%0A%0D%0AImplementing%20CAPTCHA%20using%20PHP%0D%0A%0D%0A%20%20%0D%0A%0D%0ASteps%20involved%20in%20this%20tutorial%3A%0D%0A%0D%0A%09%20%20%20%20Create%20%20%20%20%20%20%20a%20%20background%20image%2C%20the%20more%20%20%20%20%20%20%20mes" title="Tumblr"><img src="http://www.einternals.com/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.einternals.com/blog/web-development/php/implementing-captcha-using-php/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
