View Single Post
Old 11-14-2008, 11:41 AM  
xxweekxx
Confirmed User
 
Join Date: Oct 2002
Posts: 6,780
Php script line break..

Ok i found this script that shows referrer logs for traffic you send to it..
<?php
$myFile = "./data.txt";
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh,"nReferer: ");
fwrite($fh, ($_SERVER['HTTP_REFERER']) );
fwrite($fh,", ");
fwrite($fh, ($_SERVER['HTTP_USER_AGENT']) );
fwrite($fh,", ");
fwrite($fh, $_SERVER['REMOTE_ADDR']);
fwrite($fh,", ");
fwrite($fh, date('l jS of F Y h:i:s A') );
fclose($fh);
?>

Anyone of making it seperate each new one and put it in a diff line.. right now it just jumbles em up..
__________________
_________________
I am the best
xxweekxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote