Does anyone know what this error means
FATAL:
Autorisation no longer valid.704
It happens when I try to write to this file, but the permissions are set to 755 and 0644
The temp folder is in the rootfolder of this subdomain.
if ($handle = fopen( 'temp/mylog.log'"a+") )
{
if( !fwrite( $handle, $json ) )
{
throw new Exception("can't write to ...");
}
fclose( $handle );
}
thanks, Richard
Does the user who run that script own that folder/file?
do a list
to get the user who has privileges to modify the file, I suppose it is root
do from your shell the following to allow your user to access the file (change user with your username)
also use the full path in fopen.
UPDATE:
use this simple steps to write file, if you get errors then it may be something related to permissions