PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
ini_set('display_errors', TRUE); // ; Print out errors (as a part of the output).
ini_set('error_reporting', E_ALL); // ; E_ALL - All errors and warnings
$file1 = fopen('list.txt', 'ab');
if ($file1)
{
fputs($file1, date('H:i:s')."\n");
echo 'done.';
}
else
echo 'failed.';
?>
then this is the error
filesystem permissions do not allow your script to write that file.
The script is not running under your account's permission settings but under the webserver's (or what ever it switched to before executing the script)
e.g. by right-clicking on a file in the windows-explorer->properties->permissions(?). There you can set permissions on a user and/or group base.
You can as well change directory settings (might be nessecary).
The windows-help-system should provide more detail (e.g. inheritage of permission settings)