<?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>Fkn 1337 &#187; Web Development</title>
	<atom:link href="http://fkn1337.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://fkn1337.com</link>
	<description>I R TEH 1337</description>
	<lastBuildDate>Fri, 12 Mar 2010 16:46:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>iTunes 64-bit on its way?!</title>
		<link>http://fkn1337.com/itunes-64-bit-on-its-way/</link>
		<comments>http://fkn1337.com/itunes-64-bit-on-its-way/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 11:05:54 +0000</pubDate>
		<dc:creator>Hasnat</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://fkn1337.com/itunes-64-bit-on-its-way/</guid>
		<description><![CDATA[connected my iPhone to charge and i got this pretty message by iTunes am using iTunes 7.5, iPhone 1.1.2 and Vista 64 previous iTunes just gave message that iPhone is not supported. well if this is true i can finally &#8230; <a href="http://fkn1337.com/itunes-64-bit-on-its-way/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>connected my iPhone to charge and i got this pretty message by iTunes</p>
<p><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="171" alt="itunes 64bit" src="http://fkn1337.com/wp-content/uploads/2007/11/itunes-64bit.jpg" width="411" border="0" /> </p>
<p>am using iTunes 7.5, iPhone 1.1.2 and Vista 64</p>
<p>previous iTunes just gave message that iPhone is not supported.   <br />well if this is true i can finally delete my windows XP.</p>
]]></content:encoded>
			<wfw:commentRss>http://fkn1337.com/itunes-64-bit-on-its-way/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dynamic Forum Signature Tutorial</title>
		<link>http://fkn1337.com/dynamic-forum-signature-tutorial/</link>
		<comments>http://fkn1337.com/dynamic-forum-signature-tutorial/#comments</comments>
		<pubDate>Sun, 03 Jun 2007 00:54:11 +0000</pubDate>
		<dc:creator>Hasnat</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://fkn1337.com/dynamic-forums-signature/</guid>
		<description><![CDATA[Here is a little tutorial of how to make dynamic forum signature using php. Demo: Display using this code &#60;img src=&#8221;http://fkn1337.com/demos/dynamic_browser_sig/browser.php&#8221; &#47;&#62; My sig here detects the viewer browser and displays specific image for it, and also shows percentage between &#8230; <a href="http://fkn1337.com/dynamic-forum-signature-tutorial/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is a little tutorial of how to make dynamic forum signature using php.</p>
<p><b>Demo:</b><br />
<img src="http://fkn1337.com/demos/dynamic_browser_sig/browser.php" /><br />
Display using this code</p>
<p class="code">&lt;img src=&#8221;http://fkn1337.com/demos/dynamic_browser_sig/browser.php&#8221; &#47;&gt;</p>
</p>
<p>My sig here detects the viewer browser and displays specific image for it, and also shows percentage between 3 browser usage.</p>
<p><b>What You Need:</b></p>
<ul>
<li>PHP Hosting (few free ones will also work like ripway.com)</li>
<li>GDI Image Library for PHP</li>
<li>A Brain (Optional)</li>
</ul>
<p><b>Files and what they do:</b></p>
<ul>
<li><b><a href="http://fkn1337.com/demos/dynamic_browser_sig/browser.php.txt">browser.php</a></b> &#8211; will contain main script and act as a image.</li>
<li><b><a href="http://fkn1337.com/demos/dynamic_browser_sig/count.php.txt">count.php</a></b> &#8211; will save the viewers browser count values.</li>
<li><b><a href="http://fkn1337.com/demos/dynamic_browser_sig/ie.jpg">ie.jpg</a></b> &#8211; this image will be used if viewer is using MS Internet Explorer.</li>
<li><b><a href="http://fkn1337.com/demos/dynamic_browser_sig/ff.jpg">ff.jpg</a></b> &#8211; this image will be used if viewer is using FireFox.</li>
<li><b><a href="http://fkn1337.com/demos/dynamic_browser_sig/op.jpg">op.jpg</a></b> &#8211; this image will be used if viewer is using Opera Browser.</li>
<li><b><a href="http://fkn1337.com/demos/dynamic_browser_sig/other.jpg">other.jpg</a></b> &#8211; this image will be used if viewer is using non of the above.</li>
</ul>
<p><b>count.php</b><br />
count.php to save/get the browser views count</p>
<p class="code">
$iecount= 1;<br />
$ffcount= 3;<br />
$opcount= 1;
</p>
<p>You will have to CHMOD this file to 777 (writeable) so php can change it.
</p>
<p class="download">Download <a href="http://fkn1337.com/demos/dynamic_browser_sig/count.php.txt">count.php</a></p>
<p>
<b>browser.php</b><br />
initialize the count variables set 1 to avoid division by zero error</p>
<p class="code">$iecount=1;<br />
$ffcount=1;<br />
$opcount=1;</p>
<p>include count.php to get the old count values</p>
<p class="code">include(&#8220;count.php&#8221;);</p>
<p>get the user browser</p>
<p class="code">$agent = $_SERVER["HTTP_USER_AGENT"];</p>
<p>set browser value to the browser found. ie if Internet Explorer, ff if firefox, op if Opera else other</p>
<p class="code">$browser=&#8221;other&#8221;;<br />
  if ( strstr($agent, &#8220;MSIE&#8221;) ) $browser = &#8220;ie&#8221;;<br />
  elseif ( strstr($agent, &#8220;Firebird&#8221;) ) $browser = &#8220;other&#8221;;<br />
  elseif ( strstr($agent, &#8220;Safari&#8221;) ) $browser = &#8220;other&#8221;;<br />
  elseif ( strstr($agent, &#8220;Mozilla/5&#8243;) ) $browser = &#8220;ff&#8221;;<br />
  elseif ( strstr($agent, &#8220;Mozilla/6&#8243;) ) $browser = &#8220;other&#8221;;<br />
  elseif ( strstr($agent, &#8220;Mozilla/4&#8243;) ) $browser = &#8220;other&#8221;;<br />
  elseif ( strstr($agent, &#8220;Opera&#8221;) ) $browser = &#8220;op&#8221;;</p>
<p>add one to the count of browser detected (will be later used to set display position too)</p>
<p class="code">$ie=0;<br />
$ff=0;<br />
$op=0;<br />
if($browser==&#8221;ie&#8221;) $ie++;<br />
else if($browser==&#8221;ff&#8221;) $ff++;<br />
else if($browser==&#8221;op&#8221;) $op++;</p>
<p>make content of new count.php file with incremented browser count value</p>
<p class="code">$File = &#8216;<?php<br />
$iecount= '.($iecount+$ie).';<br />
$ffcount= '.($ffcount+$ff).';<br />
$opcount= '.($opcount+$op).';<br />
?>&#8216;;</p>
<p>write the count.php file</p>
<p class="code">if ($FP = fopen (&#8220;count.php&#8221;, &#8220;w&#8221;)){<br />
fwrite ($FP, $File);<br />
fclose ($FP);<br />
}</p>
<p>add up  to get percentage</p>
<p class="code">$total=$iecount+ $ffcount + $opcount;
</p>
<p>get percentage for all</p>
<p class="code">$ieperc=($iecount/$total)*100;<br />
$ffperc=($ffcount/$total)*100;<br />
$opperc=($opcount/$total)*100;
</p>
<p>get image for specific browser</p>
<p class="code">$im = imagecreatefromjpeg($browser.&#8221;.jpg&#8221;);</p>
<p>make font color to be used to display percentage values</p>
<p class="code">$gery = ImageColorAllocate ($im, 255, 204, 109);</p>
<p>display ie, ff, op count as string on image</p>
<p class="code">ImageString($im, 3, 271+($ie*2), 8+$ie,round($ieperc,0).&#8221;%&#8221;,$gery);<br />
ImageString($im, 3, 431, 8+$ff,round($ffperc,0).&#8221;%&#8221;,$gery);<br />
ImageString($im, 3, 592, 8+$op,round($opperc,0).&#8221;%&#8221;,$gery);</p>
<p>make .php to act as .jpg</p>
<p class="code">header(&#8220;Content-type: image/jpeg&#8221;);</p>
<p>show the picture content</p>
<p class="code">Imagejpeg($im,&#8221;,300);</p>
<p>free resources clear $im in cache</p>
<p class="code">ImageDestroy ($im);</p>
<p></p>
<p>remember your browser.php and code.php should always start with &lt;?php and end with ?&gt; and no spaces before or after, otherwise your image wont showup<br />
e.g.</p>
<p class="code">&lt;?php<br />
///Your code here<br />
///and here<br />
//and here<br />
//till you are done<br />
//now end .php file<br />
?&gt;</p>
</p>
<p class="download">Download <a href="http://fkn1337.com/demos/dynamic_browser_sig/browser.php.txt">browser.php</a></p>
<p><b>Four Images:</b><br />
ie.jpg will be shown when user is viewing using Internet Explorer<br />
<img src="http://fkn1337.com/demos/dynamic_browser_sig/ie.jpg" /><br />
ff.jpg will be shown when user is viewing using FireFox<br />
<img src="http://fkn1337.com/demos/dynamic_browser_sig/ff.jpg" /><br />
op.jpg will be shown when user is viewing using Opera<br />
<img src="http://fkn1337.com/demos/dynamic_browser_sig/op.jpg" /><br />
other.jpg will be shown when user is viewing using none of the above<br />
<img src="http://fkn1337.com/demos/dynamic_browser_sig/other.jpg" />
</p>
<p class="download">Download Full Package <a href="http://fkn1337.com/scripts/dynamic_browser_sig.zip">Dynamic Forums Signature</a></p>
<p><b>Demo Again:</b><br />
<img src="http://fkn1337.com/demos/dynamic_browser_sig/browser.php" /><br />
Display using this code</p>
<p class="code">&lt;img src=&#8221;http://fkn1337.com/demos/dynamic_browser_sig/browser.php&#8221; &#47;&gt;</p></p>
]]></content:encoded>
			<wfw:commentRss>http://fkn1337.com/dynamic-forum-signature-tutorial/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Fantasy Cricket jsp + oracle script</title>
		<link>http://fkn1337.com/fantasy-cricket-jsp-oracle-script/</link>
		<comments>http://fkn1337.com/fantasy-cricket-jsp-oracle-script/#comments</comments>
		<pubDate>Thu, 31 May 2007 01:04:53 +0000</pubDate>
		<dc:creator>Hasnat</dc:creator>
				<category><![CDATA[Studies]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://fkn1337.com/fantasy-cricket-jsp-oracle-script/</guid>
		<description><![CDATA[was sorting some data found few scripts/code which i thought might help someone Its a Fantasy Cricket game script in java server pages (jsp) using oracle. with only basic functionalities Its not a fancy script but can help a noob &#8230; <a href="http://fkn1337.com/fantasy-cricket-jsp-oracle-script/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>was sorting some data found few scripts/code which i thought might help someone</p>
<p>Its a Fantasy Cricket game script in java server pages (jsp) using oracle.<br />
with only basic functionalities </p>
<p>Its not a fancy script but can help a noob to get over with jsp and oracle.</p>
<p class="download">Download <a href="http://www.fkn1337.com/scripts/fantasy_cricket_jsp_oracle.zip">Fantasy Cricket jsp oracle script</a></p>
<p>please don&#8217;t complain about noobness/bugs about script, I know am not good at it + I already hate jsp a lot.</p>
]]></content:encoded>
			<wfw:commentRss>http://fkn1337.com/fantasy-cricket-jsp-oracle-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide Email from Spambots but not from users</title>
		<link>http://fkn1337.com/hide-email-from-spambots-but-not-from-users/</link>
		<comments>http://fkn1337.com/hide-email-from-spambots-but-not-from-users/#comments</comments>
		<pubDate>Tue, 17 Oct 2006 05:45:48 +0000</pubDate>
		<dc:creator>Hasnat</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://fkn1337.com/hide-email-from-spambots-but-not-from-users/</guid>
		<description><![CDATA[i always love to click the mail button instead of typing and matching email from the image. Spammers have made our lives miserable using this little piece of javascript can give you both, a text email link and no spam &#8230; <a href="http://fkn1337.com/hide-email-from-spambots-but-not-from-users/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>i always love to click the mail button instead of typing and matching email from the image.<br />
Spammers have made our lives miserable <img src='http://fkn1337.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>using this little piece of javascript can give you both, a text email link and no spam <img src='http://fkn1337.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>most of search engines + spam bots don&#8217;t check the script tag, but even if they check that who is gonna extract email from the script <img src='http://fkn1337.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<ol class="codelist">
<li class="tab0 odd"><code>&lt;script language=javascript&gt;</code></li>
<li class="tab0 even"><code>&lt;!--</code></li>
<li class="tab0 odd"><code>var linktext = &quot;Contact&quot;;</code></li>
<li class="tab0 even"><code>var username = &quot;Admin&quot;;</code></li>
<li class="tab0 odd"><code>var domain = &quot;website.com&quot;;</code></li>
<li class="tab0 even"><code>document.write(&quot;&lt;a href=&quot; + &quot;ma&quot; + &quot;il&quot; + &quot;to&quot; + &quot;:&quot; + username + &quot;@&quot; + domain + &quot;&gt;&quot; + linktext + &quot;&lt;/a&gt;&quot;);</code></li>
<li class="tab0 odd"><code>//--&gt;</code></li>
<li class="tab0 even"><code>&lt;/script&gt;</code></li>
<li class="tab0 odd"><code>&lt;noscript&gt;</code></li>
<li class="tab0 even"><code>&lt;!-- No Script for searh engines and spam bots --&gt;</code></li>
<li class="tab0 odd"><code>&lt;img src=&quot;http://mydomain.com/myemail.jpg&quot; alt=&quot;Im sorry but youll have to type it manually&quot; /&gt;</code></li>
<li class="tab0 even"><code>&lt;/noscript&gt;</code></li>
<li class="sourcelink"><strong>Download this code:</strong> <a href="http://www.fkn1337.com/codes/nospam.txt">nospam.txt</a></li>
</ol>
<p>I see dead Spammers hehehe.</p>
]]></content:encoded>
			<wfw:commentRss>http://fkn1337.com/hide-email-from-spambots-but-not-from-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
