PHP 4.0 Bug #4822 Updated: Uploading in safe mode
| From: | sniper@php.net | Date: | Tue, 21 Nov 2000 08:58:01 +0000 |
| Subject: | PHP 4.0 Bug #4822 Updated: Uploading in safe mode | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38760@lists.php.net to get a copy of this message | ||
ID: 4822
Updated by: sniper
Reported By: stano@upjs.sk
Status: Duplicate
Bug Type: Feature/Change Request
Assigned To:
Comments:
Duplicate of #5575 (one part of it)
Previous Comments:
---------------------------------------------------------------------------
[2000-07-26 09:30:30] sniper@php.net
My personal opinion is that this feature he's asking for shouldn't be implemented. It
isn't safe mode then..;-)
There is an solution for this, change php.ini directive:
upload_tmp_dir = ./tmp/
Then users have their own tmp-dir where uploads are located.
--Jani
---------------------------------------------------------------------------
[2000-07-26 07:29:33] joey@php.net
I agree. Looks like a feature request to me.
---------------------------------------------------------------------------
[2000-07-26 06:03:28] zak@php.net
If I am reading this correctly, it is not a bug report - instead it is a couple of suggestions on
how to manage file uploading in safe mode
---------------------------------------------------------------------------
[2000-06-05 15:53:51] stano@upjs.sk
I have two ways for problem in uploading files in safe mode.
If I upload file to www server, php save them to file like /tmp/php.....
owner of this file is: nobody, or web user
First way:
in php3, new rule in php3.ini ( or php4.ini )
safe_mode_upload_dir
for dir, where php dotn't cack owner of these /tmp/php.... files
Second way:
make a function
copy_upload_file(full path) or open_upload_directory()
which open uploades file (/tmp/php.....) and don't check owner of these file
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=4822