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... .htaccessspy.phpspy.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.gifin the file. ip.txt The last IP shows up. Accordingly, in spy.php You write anything, but don't forget the last two lines.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2