ID:               26597
 Updated by:       [EMAIL PROTECTED]
 Reported By:      valyala at tut dot by
-Status:           Open
+Status:           Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Win2k sp3
 PHP Version:      4.3.4
 New Comment:

Try this:

print(addslashes($_FILES['any_file']['tmp_name']));



Previous Comments:
------------------------------------------------------------------------

[2003-12-12 04:50:43] valyala at tut dot by

Description:
------------
PHP 4.3.4 is running under apache 1.3.27 as module.

Value of $_FILES['any_file']['tmp_name'] is wrong. All slashes in the
path has been deleted. So, I cannot know the real filename of temporary
file.

Reproduce code:
---------------
/* file with name 'any_file' was posted to the script
 I want to see, where the temporary file was stored on the server:
*/
print($_FILES['any_file']['tmp_name']);

Expected result:
----------------
c:/winnt/temp/phpXX.tmp


Actual result:
--------------
c:winnttempphpXX.tmp


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26597&edit=1

Reply via email to