<comp.lang.ph p>
<Michael Fesser>
<Mon, 16 Jul 2007 05:35:39 +0200>
<nf************ *************** *****@4ax.com>
Using the IP to "identify" a user is even more unreliable than anything
else
Not everybody is looking 100% accuracy .
$klock being set a value in the config file .
<?php
$rambo=$_SERVER['REMOTE_ADDR']; $rambo=str_repl ace(".","_",$ra mbo);
$demo=$_SERVER['HTTP_USER_AGEN T']; $wsx=strtolower ($demo); $witt="zz";
$qaz=strpos($ws x,"windows"); if ($qaz==true) {$witt="ie";}
$qaz=strpos($ws x,"firefox"); if ($qaz==true) {$witt="ff";}
$qaz=strpos($ws x,"safari"); if ($qaz==true) {$witt="sf";}
$qaz=strpos($ws x,"opera"); if ($qaz==true) {$witt="op";}
$qaz=strpos($ws x,"mac"); if ($qaz==true) {$witt="mc";}
$wsx=$rambo . "_" . $witt; $rambo=$wsx;
$wsx=time()+$kl ock;
$filenamecu="de mo/$rambo.php"; $fpcu=fopen($fi lenamecu,"w");
fwrite ($fpcu,$rambo); fwrite ($fpcu,"\n");
fwrite ($fpcu,$wsx); fwrite ($fpcu,"\n");
fclose ($fpcu);
?>