1) man chmod on a linux box or
2) Understand it
3) Conenct via FTP or telnet or SSH or what you will to your Linux box
4) use the chmod command to set the appropriate permissions. (644 should do)
5) Your fopen() will now work
Using chmod via PHP will not work because that too will require that you
have write permission on the file, the very reason why your fopen() was
failing in the first place.
If you are hosted on a half decent box, even if only with a web interface to
upload files, it should provide a way for you to change permissions. Any
sysadmin would die of exhaustion + boredom if he kept getting calls from his
clients to set perms on files.
----- Original Message -----
From: "R Karthick" <rkarthick@xxxxxxx>
Sent: Saturday, July 20, 2002 9:54 PM
Subject: [Ilugc] Permission denied !!???
i have this php program which writes to a file using fopen(). its works
in my windows box and linux box(when i change the file permissions)...
but when i uploaded the file into a linux server and tried to write into a
file which is located in the server, it's showing the error,permission
denied. i tried to change the permission using chmod(), in php. Even that
returned "Operation not permitted". Is there any way that i can change the
file permissions using a php program rather than contacting the server
thnx in advance,
Follow Your Heart
To unsubscribe email Ilugc-request@xxxxxxxxxxxxxxxxxx with "unsubscribe"
in the subject or body of the message.