4.013 PHP5 HTTP_POST method no longer works
I just updated to 4.013 and PHP5 HTTP_POST does not work. Verified working fine in 4.012 and Apache.
Here's the code:
<form method=post action="pictureform.php">
<input type="FILE" name="userpic" size="30">
Under 4.012 and Apache $source will return the temporary file location of the file (e.g. /tmp/adoije)
$source = $HTTP_POST_FILES['userpic']['tmp_name'];
4.013 returns a null value. It appears the temporary file is not actually created from the upload form.
edit: Changing the script to the $_FILES super global solved the issue. Although this might be a problem for older scripts.
Last edited by chernann; 02-23-2010 at 12:16 AM..