Page 1 of 1

I can mkdir and rmdir but not opendir????

Posted: Sat Feb 28, 2004 6:48 am
by stephdumais
Hi, I'm creating a basic file manager and started with the directory browser.

One script browses the directory list, one creates directories and the other deletes them. (data is updated in a Mysql DB as well)

I can mkdir without a problem and can even rmdir the folder afterwards. The problem is when I try to opendir a folder generated through the script, I get this error:

opendir(): SAFE MODE Restriction in effect. The script whose uid is [...]

I'm still a novice in PHP coding but shouldn't I be able to opendir if I could create and delete the dirs in the first place?

I checked my phpinfo and here is what I get:
safe_mode (local:On) (master:Off)
safe_mode_gid (local:Off) (master:Off)

Any ideas how I could avoid the opendir problem?

Thanks

Posted: Sat Feb 28, 2004 10:00 am
by Illusionist
Try addnig this to your Apache configuration file...

<Directory /where/you/install/phpcollab/>
php_admin_value safe_mode 0
</Directory>

Apply the changes and see if you still get the error.