Permission denied
Posted: Mon Feb 26, 2007 1:51 am
Hi guys,
Please help..
this is the code;
and this the problem
Thanks in advance
Please help..
this is the code;
Code: Select all
function record_message($sDate) {
$handle = fopen("ResultsMaxGraham26022007.txt", "a");
fputs($handle, "Input Date: ".$sDate."\r\n");
fputs($handle, "Name: ".$_POST['name']."\r\n");
fputs($handle, "Email: ".$_POST['email']."\r\n");
fputs($handle, "Answer: ".$_POST['soal']."\r\n");
if($_POST['soal'] == 'Montreal') {
fputs($handle, "Status: CORRECT\r\n\n");
} else {
fputs($handle, "Status: INCORRECT\r\n\n");
}
fclose($handle);
}Code: Select all
Warning: fopen(ResultsMaxGraham26022007.txt): failed to open stream: Permission denied in /www/htdocs/ultimcom/maxgraham/index.php on line