try these suggestions, each is commented, just uncomment to
try and comment the others, only try one at a time
btw...what version of php are you using
$action = $_GET['action'];
//$action = $_POST['action'];
//extract($_GET);
//extract($_POST);
if (isset($action))
{
if (file_exists("action.txt"))
{
if (is_writable("action.txt"))
{
$now = date("d/m/y H:i:s");
$fname = "action.txt";
$fd = fopen($fname, "w");
fputs($fd, "${now} ${action}");
fclose($fd);
}
else
{
print "File is not writable";
}
}
else
{
print "File does not exist";
}
}