hi folks,

I just realised that open_basedir also prevents the access to /tmp.
Thus, file uploads aren't possible.

One solution would be, to use a tmp directory within open_basedir, to
give PHP the required write access.

But assume you're using a server with multiple VirtualHosts and www-dirs. You use open_basedir to limit the access of every script running in a specific VirtualHost/www-dir to its proper www-dir.

Now you would have to create a .../tmp directory for each single www-dir, which is not very pretty.

Would it be possible to limit access to open_basedir without the
exception of /tmp, to allow the uploads?

/dorgon


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to