Page 1 of 1

Move_uploaded_file() only fails when dir created by script

Posted: Tue Nov 29, 2005 8:39 am
by Jeroen Oosterlaar
Hi,

I have a problem that will surely be logical, but I just cannot find the solution. I have a script that instantly creates a directory and then chmod's it to allow another script to add uploaded files to it. But when I run the uploading script I get the SAFE MODE error which says that the script has no right to access the directory. But when I use my FTP client and manually create the directory and manually giving it exactly the same rights, the upload succeeds.

Does anybody knows why this is?

Thanks in advance!

Cheers,

Jeroen