I struggled with writing one line to a file. I use simple code under Slackware 13:
$fp = fopen('/my/absolute/path/data.txt', 'w'); fwrite($fp, 'just a testing string...'); fclose($fp);
A file is created (if it has not already been created), but is it empty ?! The directory in which this file is written belongs to the user and the apache group (daemon.daemon) and has permissions 0777. This has never happened to me before. I am curious what is the reason I cannot write inside a file?
Thanks in advance.
source share