Click to See Complete Forum and Search --> : write into a text file


Anon
06-09-2001, 11:08 PM
hi
iam trying to write into a text file using
fputs function, when i write into a text file that is in my /home/httpd/html folder that is in the same folder that contains the php script , it writes fine.
But when i try to write into a text file that is in some other directory lets say
/etc/dhcp/dhcp.conf it gives me a permission error, though i've checked the perissions on that file and it is set to all users.
plz help me out
nashia

Anon
06-10-2001, 12:09 AM
It is most likely (not definate) a problem with the permissions to the directories beneath the file of the directory that holds the file itself. Also make sure the path you have specified in the script is correct.