Issues with file_put_contents (or and type of file write) please help

php 5.0.3 , apache 2, fedora 3

ok ... here it goes ...

i have tried everything and get permission denied errors trying to write to a file on the server.

i have tried :
fput
fwrite
file_put_contents

non of those work ... now keep in mind i can read the files in everyway i have tried.

if i run is_writable it returns true

i have chmod chown and chgrp the directory and files in every way i can thing up ...

i have set the open_base_directory to the correct path and disables it ....

none of this has brought me and luck and i have search all over and can't seem to find any info n this.

thanks in advanceIf permission is denied its not always the file, sometimes its the directory as well. You may need to check the file permissions e.g. 644 ? and directory permissions also. They should be set to 777 so you can write.Hi,

please check if the SELinux protection for the httpd daemon is enabled. That might cause the problems because the protection might prevent write access to files.

ThomasOriginally posted by tsinka
Hi,

please check if the SELinux protection for the httpd daemon is enabled. That might cause the problems because the protection might prevent write access to files.

Thomas


I LOVE YOU!!!!

that was the exact issue.
 
Back
Top