ID: 29403 Comment by: php at sharpdreams dot com Reported By: markrx178 at yahoo dot com dot hk Status: Open Bug Type: HTTP related Operating System: Fedora 2 PHP Version: 4.3.8 New Comment:
Please review the information on http://www.php.net/manual/en/features.file-upload.php including the user comments. You will never see a temporary file created by PHP as long as PHP is doing its job correctly. PHP removes those temporary files at the end of the request unless they are moved/renamed. Previous Comments: ------------------------------------------------------------------------ [2004-07-27 06:16:09] markrx178 at yahoo dot com dot hk Description: ------------ Dear Guru, I had installed the 4.3.8-3 rpm for Fedora in an Apache 2.0.50 environment. After installation of some community suites (like xoops, phpnuke, etc. ), I found all of the upload functions failed strangely. I go further to suspect some setting may be wrong about my php.conf. However, after extensive searching, I found my settings (including FileUploads on, tmp_dir = /www/tmp, etc.) should probably be correct. * I have checked the tmp directory is owned and writeable by apache. I therefore write a very simple file upload to check the correct functioning of file upload. http://ootlinux01.homelinux.net:8000/testupload.html (It will POST to a .php file which simply display phpinfo()) and check whether the tmpfile would be created in the destinated directory. I cannot find the expected new tmpfile. Would someone know what's has gone wrong or is it some unmatched version among Apache and PHP ? I would be grateful for your kind assistance. Thank you for your help. Best Regards, Mark Reproduce code: --------------- http://ootlinux01.homelinux.net:8000/testupload.html (It will POST to a .php file which simply display phpinfo()) However, the expected tmpfile in the tmp directory was not found. Expected result: ---------------- I expected a tmpfile could be found. Actual result: -------------- Nothing found in the tmp directory (as I specified in php.conf). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29403&edit=1