uploading file outside WEB Root
| From: | Angelo Zanetti | Date: | Mon, 01 Sep 2008 09:49:28 +0000 |
| Subject: | uploading file outside WEB Root | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-279205@lists.php.net to get a copy of this message | ||
Hi All,
For security purposes I would like to upload a file outside the webroot.
I have got this to work on my local dev machine but it doesn't seem to work
on the live server.
I have tried both the relative path and also the full path (from the
$_SERVER[DOCUMENT_ROOT] variable).
Now I can't get the upload to work and have no idea what the problem could
be. I have also set the permissions of the folder, so that can't be a
problem.
Could it be a problem with server hosting restrictions? Or maybe the server
is setup for virtual hosting?
Thanks
Angelo