PHP & Writing to Files
Posted: Sat Nov 05, 2005 5:21 pm
Hi
I have an issue on my Fedora Core 4 installation where PHP scripts can't write to text files.
As an example, I get the following in Apache error logs:
PHP Warning: fwrite(): supplied argument is not a valid stream resource...
PHP Warning: fclose(): supplied argument is not a valid stream resource...
Apache is running as user "apache", with the files in question having been chown'd to apache & chmod'd to 777.
SELinux is disabled.
"Safe mode" in php.ini is set to off, & it's configuration hasn't been altered since installation.
Running Apache 2.0.54-10.2 & PHP 5.0.4-10.4.
Can someone please help me with this one?
Thanks
Ashley
I have an issue on my Fedora Core 4 installation where PHP scripts can't write to text files.
As an example, I get the following in Apache error logs:
PHP Warning: fwrite(): supplied argument is not a valid stream resource...
PHP Warning: fclose(): supplied argument is not a valid stream resource...
Apache is running as user "apache", with the files in question having been chown'd to apache & chmod'd to 777.
SELinux is disabled.
"Safe mode" in php.ini is set to off, & it's configuration hasn't been altered since installation.
Running Apache 2.0.54-10.2 & PHP 5.0.4-10.4.
Can someone please help me with this one?
Thanks
Ashley