You are here: Empty $_FILES array??!?! « PHP Programming Language « IT news, forums, messages
Empty $_FILES array??!?!

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация