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 delete my windows XP.
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 delete my windows XP.
Here is a little tutorial of how to make dynamic forum signature using php.
Demo:
Display using this code
<img src=”http://fkn1337.com/demos/dynamic_browser_sig/browser.php” />
My sig here detects the viewer browser and displays specific image for it, and also shows percentage between 3 browser usage.
What You Need:
Files and what they do:
count.php
count.php to save/get the browser views count
$iecount= 1;
$ffcount= 3;
$opcount= 1;
You will have to CHMOD this file to 777 (writeable) so php can change it.
Download count.php
browser.php
initialize the count variables set 1 to avoid division by zero error
$iecount=1;
$ffcount=1;
$opcount=1;
include count.php to get the old count values
include(”count.php”);
get the user browser
$agent = $_SERVER["HTTP_USER_AGENT"];
set browser value to the browser found. ie if Internet Explorer, ff if firefox, op if Opera else other
$browser=”other”;
if ( strstr($agent, “MSIE”) ) $browser = “ie”;
elseif ( strstr($agent, “Firebird”) ) $browser = “other”;
elseif ( strstr($agent, “Safari”) ) $browser = “other”;
elseif ( strstr($agent, “Mozilla/5″) ) $browser = “ff”;
elseif ( strstr($agent, “Mozilla/6″) ) $browser = “other”;
elseif ( strstr($agent, “Mozilla/4″) ) $browser = “other”;
elseif ( strstr($agent, “Opera”) ) $browser = “op”;
add one to the count of browser detected (will be later used to set display position too)
$ie=0;
$ff=0;
$op=0;
if($browser==”ie”) $ie++;
else if($browser==”ff”) $ff++;
else if($browser==”op”) $op++;
make content of new count.php file with incremented browser count value
$File = ‘
$iecount= '.($iecount+$ie).';
$ffcount= '.($ffcount+$ff).';
$opcount= '.($opcount+$op).';
?>‘;
write the count.php file
if ($FP = fopen (”count.php”, “w”)){
fwrite ($FP, $File);
fclose ($FP);
}
add up to get percentage
$total=$iecount+ $ffcount + $opcount;
get percentage for all
$ieperc=($iecount/$total)*100;
$ffperc=($ffcount/$total)*100;
$opperc=($opcount/$total)*100;
get image for specific browser
$im = imagecreatefromjpeg($browser.”.jpg”);
make font color to be used to display percentage values
$gery = ImageColorAllocate ($im, 255, 204, 109);
display ie, ff, op count as string on image
ImageString($im, 3, 271+($ie*2), 8+$ie,round($ieperc,0).”%”,$gery);
ImageString($im, 3, 431, 8+$ff,round($ffperc,0).”%”,$gery);
ImageString($im, 3, 592, 8+$op,round($opperc,0).”%”,$gery);
make .php to act as .jpg
header(”Content-type: image/jpeg”);
show the picture content
Imagejpeg($im,”,300);
free resources clear $im in cache
ImageDestroy ($im);
remember your browser.php and code.php should always start with <?php and end with ?> and no spaces before or after, otherwise your image wont showup
e.g.
<?php
///Your code here
///and here
//and here
//till you are done
//now end .php file
?>
Download browser.php
Four Images:
ie.jpg will be shown when user is viewing using Internet Explorer

ff.jpg will be shown when user is viewing using FireFox

op.jpg will be shown when user is viewing using Opera

other.jpg will be shown when user is viewing using none of the above
Download Full Package Dynamic Forums Signature
Demo Again:
Display using this code
<img src=”http://fkn1337.com/demos/dynamic_browser_sig/browser.php” />
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 to get over with jsp and oracle.
Download Fantasy Cricket jsp oracle script
please don’t complain about noobness/bugs about script, I know am not good at it + I already hate jsp a lot.
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
most of search engines + spam bots don’t check the script tag, but even if they check that who is gonna extract email from the script
<script language=javascript><!--var linktext = "Contact";var username = "Admin";var domain = "website.com";document.write("<a href=" + "ma" + "il" + "to" + ":" + username + "@" + domain + ">" + linktext + "</a>");//--></script><noscript><!-- No Script for searh engines and spam bots --><img src="http://mydomain.com/myemail.jpg" alt="Im sorry but youll have to type it manually" /></noscript>I see dead Spammers hehehe.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Feb | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||