ID: 20851 Updated by: [EMAIL PROTECTED] -Summary: Problem with the example in file-upload.xml Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Documentation problem Operating System: Windows Millenium PHP Version: 4.2.3 New Comment:
According to the source there are defaults. Here are some comments found within hp_open_temporary_file.c: /* We can't count on the environment variables TEMP or TMP, * and so must make the Win32 API call to get the default * directory for temporary files. Note this call checks * the environment values TMP and TEMP (in order) first. */ That call is made to GetTempPath. Run msconfig.exe and tell us what the above environment variables are set to on your system. Previous Comments: ------------------------------------------------------------------------ [2002-12-05 21:34:26] [EMAIL PROTECTED] In a mailing list the people tell they canīt make the example of file upload work, only who uses windows. So a begin work on this and discover why. If you donīt define upload_tmp_dir in php.ini, appears that php donīt know where to put, or it puts the file but donīt know where so $_FILES['userfile']['name'] return the correct value, but $_FILES['userfile']['tmp_name'] comes empty and you canīt move the file. Note that I donīt have anything in TMPDIR too. The people on windows "must" set the upload_tmp_dir in php.ini, without this canīt upload a file. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20851&edit=1 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php