Posted by chris on 04/06/06 08:10
Can someone else see immediately why this script:
<html>
<body>
<?php
error_reporting(~E_ALL);
print_r($_FILES);
print_r($_POST);
print_r($_REQUEST);
?>
<form name="form" action="<?php echo $_SERVER['PHP_SELF'] .
'?processed=1'; ?>" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="5000000"/>
<input type="file" enctype="multipart/form-data" name="thefile"/>
<input type="submit"/>
</form>
</body>
</html>
Causes this output:
Array
(
)
Array
(
[MAX_FILE_SIZE] => 5000000
[thefile] => archivedir.sh
)
Array
(
[processed] => 1
[MAX_FILE_SIZE] => 5000000
[thefile] => archivedir.sh
[PHPSESSID] => e7aa5c556db6b286a8eca8704b58a4de
)
When file_uploads, upload_max_filesize, upload_tmp_dir, post_max_size
and max_input_time are set to appropriate values in php.ini (php5.1.2)?
Driving me nutso.
Navigation:
[Reply to this message]
|