How do we make a PHP violin play when we go to gif?
-
This is the opportunity on the 2ip.ru Spion. You put a picture on the user, he comes in on it, and all the data (IP, etc) are sent to the owner.
-
Put three files in the catalogue...
.htaccess
♪spy.php
♪spy.gif
(grunts)-- .htaccess --
RewriteEngine On
RewriteRule ^ip.gif$ spy.php
-- spy.php --
<?
if ($f = fopen('ip.txt', 'a+')) {
fwrite($f, $_SERVER['REMOTE_ADDR']."\n");
fclose($f);
}
header('Content-Type: image/gif');
readfile('spy.gif');
?>
You're giving me the reference.
ip.gif
in the file.ip.txt
The last IP shows up. Accordingly, inspy.php
You write anything, but don't forget the last two lines.