Nap
03-05-2006, 04:44 PM
The php function I've written below:
function success($loginName)
{
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
$filename = "$DOCUMENT_ROOT/memberlist/user.log";
$log=fopen($filename, "w+"); <===== Line 37
fputs($log, $loginName);
fclose($log);
Header("Location: secure.php");
}produces the following error:
Warning: fopen(/home/test/public_html/memberlist/user.log): failed to open stream: Permission denied in /home/test/public_html/passwordProcess.php on line 37
Can anyone explain what might be causing this error wrong? I was getting the same error before I placed the file into the memberlist folder.
Is it due to user rights? If so, what should they be set to?
Is the php.ini file set incorrectly?
Cheers,
Nap
function success($loginName)
{
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
$filename = "$DOCUMENT_ROOT/memberlist/user.log";
$log=fopen($filename, "w+"); <===== Line 37
fputs($log, $loginName);
fclose($log);
Header("Location: secure.php");
}produces the following error:
Warning: fopen(/home/test/public_html/memberlist/user.log): failed to open stream: Permission denied in /home/test/public_html/passwordProcess.php on line 37
Can anyone explain what might be causing this error wrong? I was getting the same error before I placed the file into the memberlist folder.
Is it due to user rights? If so, what should they be set to?
Is the php.ini file set incorrectly?
Cheers,
Nap