This is normal. You are allowed to create the directory because the directory you are creating it in is owned by the same user id that owns the script calling mkdir(). However, since your web server runs as some other user the owner of the newly created dir will be that user and not your own so you subsequently cannot manipulate that directory. Same problem with safe mode and file uploads. ISP's are generally better off using open_basedir instead of safe-mode for this very reason.
-Rasmus On Sat, 28 Feb 2004, raisinlove wrote: > Hi, I'm having trouble understanding why I can create and delete > directories with my script via mkdir and rmdir, but not simply being > able to read them with opendir or readdir? > > For example, when I attempt to access these directories with opendir, I > get this error message: > > Warning: opendir(): SAFE MODE Restriction in effect. The script whose > uid is 789 is not allowed to access... > > Safe Mode is on as I am hosted on a shared server and cannot change > this. Surely there's a work-around for this? > > Any helpfull input would appreciated > Thanks, > -s > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php