Re: undefined index: $_FILES || $HTTP_POST_FILES

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Tobias Neumann wrote:

Hello!

I have the same script on two webservers with php 4.3.9 and apache 2, both
with the same php configurations. On one server I can not access
$_FILES or $HTTP_POST_FILES, although a form with a file has been
correctly submitted.



Quick question: is file uploads enabled on this server and is the temporary directory writable?

apache_request_headers() contains:

[Content-Type] => multipart/form-data;
boundary=---------------------------207315575716727585901748724465
[Content-Length] => 5779

So php should have received the form data. I can access $_GET and $_POST
without any problem.

$_FILES and $HTTP_POST_FILES do simply not exist, and when I try
to access them I just get an undefined index error, or with print_r() an
empty array.

Regards,
 Tobias Neumann





--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/         | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux