On Tue, Mar 20, 2012 at 4:33 PM, Meike Stone <meike.st...@googlemail.com> wrote: > Hello, > > I try the upload files, but in "tmp_name" and other variables are > missing in $_FILES. > I use php 5.3.8 on SLES11SP2 > > I can repeat this with: > =================================================== > <?php > if(isset($_FILES)) { > var_dump($_FILES); > } > ?> > <!-- The data encoding type, enctype, MUST be specified as below --> > > <form enctype="multipart/form-data" action="/i3.php" method="POST"> > > <!-- MAX_FILE_SIZE must precede the file input field --> > > <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> > > <!-- Name of input element determines name in $_FILES array --> > > Send this file: <input name="userfile" type="file" /> > > <input type="submit" value="Send File" /> > > </form> > =================================================== > > The $_FILES shows only: > array(1) { ["userfile"]=> array(1) { ["name"]=> string(14) "ask_script.xml" } > } > > I traced (strace) the apache process, and I saw, that a temporary > file was opened, the text from the file written and than later > unlinked. > > What can be the problem? > > > > Kindly regards > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
First of all, check your apache log files for any hints. There's probably a warning/error in there that explains why. If not, check your php.ini settings, there are a few settings that can affect uploads (see [1]). - Matijn [1] http://nl3.php.net/manual/en/ini.core.php#ini.sect.file-uploads -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php