Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Redirects the user so they never know they visited your site
- header( 'Location: http://www.google.co.uk' );
- //Get the ip address of the user
- $ip=$_SERVER['REMOTE_ADDR'];
- //Write the IP to a file
- $myFile = "ip.txt";
- $fh = fopen($myFile, 'a') or die("can't open file");
- $stringData = "$ip\n";
- fwrite($fh, $strintgDate);
- fclose($fh);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment