note 54996 rejected from security.globals by mazzanet
| From: | mazzanet@php.net | Date: | Fri, 22 Jul 2005 05:31:51 +0000 |
| Subject: | note 54996 rejected from security.globals by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-92271@lists.php.net to get a copy of this message | ||
Note Submitter: info at vuurdoop dot com
----
File Upload doesn't work with globals off!
When register_globals was set to off on my server, with PHP Version 5.0.4, FreeBSD the upload
function, move_uploaded_file, didn't work anymore!
And I couldn't get it to work with $_POST
Or extract($_POST) or whatever...
The only way to get it to work again was to make a .htaccess file in the root with
php_flag register_globals 1
in it. Or to set it to 1 again in php.ini...
Is this maybe because move_uploaded_file makes special vars like someuploadvar_name?