PHP 4.0 Bug #4822: Uploading in safe mode
| From: | stano at upjs dot sk | Date: | Mon, 05 Jun 2000 13:53:51 +0000 |
| Subject: | PHP 4.0 Bug #4822: Uploading in safe mode | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-20248@lists.php.net to get a copy of this message | ||
From: stano@upjs.sk
Operating system: Linux
PHP version: 4.0.0 Release
PHP Bug Type: Other
Bug description: Uploading in safe mode
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