PDA

View Full Version : Set permissions INSIDE a php script.


Demon
12-01-2004, 05:53 PM
Hi.

I need help to set permissions inside a php script. I basically have a php uploader script, but all the files that get uploaded are not set to 0644 and they need to be. I have tried this:

chmod ($file_name, 0644);

But that doesn't seem to work. Does anyone know whats wrong?


Many thanks,
Ashley


EDIT

I got it working, i forgot the directory name.
chmod ("uploadedfiles/$file_name", 0644); :o