Apache/2.2.15 (Win32) PHP/5.3.2
I'm trying to upload a file to Apache and my PHP script tells me everything goes well (status code 0), but the file is not in the temp directory. The PHP answer is always coming immediately, regardless of the file size. The PHP Error log doesn't show any errors at all.
The Apache server is running on its own user account with full access to the log and doc folders.
PHP.ini
file_uploads = On
upload_tmp_dir =
upload_max_filesize = 10M
upload_tmp_dir="C:\WINDOWS\Temp"
send.html
<!DOCTYPE html>
<html>
<body>
<form enctype="multipart/form-data" action="upload.php" method="post" >
<input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>
</body>
</html>
upload.php
<?php
// In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead
// of $_FILES.
echo '<pre>';
print_r($_FILES);
echo '</pre>';
?>
The result look like this
Array
(
[userfile] => Array
(
[name] => strings.lua
[type] => application/octet-stream
[tmp_name] => C:\WINDOWS\Temp\phpC0.tmp
[error] => 0
[size] => 9935
)
)
The file C:\WINDOWS\Temp\phpC0.tmp doesn't exists.
Are there any other considerations/configurations that I have missed out? The Apache server has been running with PHP for over 5 years and works fine in all other aspects. I can't upgrade Apache or PHP to a newer version because this is an application in production and the customer won't risk to an upgrade.