468,249 Members | 1,511 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,249 developers. It's quick & easy.

$_FILES empty

All I did was recompile my PHP 4.3.4 with the included GD and now my
$_FILES is perpetually empty. My php app is identical, I haven't
changed it at all since recompiling. I tried recompiling again
without GD to fix the problem, to go back to what I had before, but
$_FILES is always empty. I can't imagine that I'm doing something so
out of the ordinary, and yet I'm unable to google for someone with the
same problem. I am running Mandrake 9.2.

Here is how I ran configure:
[root@localhost php-4.3.4]# ./configure
--with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
--prefix=/usr/local/php434 --with-gd (also tried without gd again)

Here is what I'm using to test fix attempts:

<?
error_reporting(E_ALL);
print_r($_FILES);
if (empty($_FILES)) {
echo "\$_FILES is empty<br>\n"; //this prints
}
echo $_FILES['player1photo']['error']; //$_FILES is empty anyway.
echo '<form method="POST" enctype="multipart/form-data">
<input type="file" name="player1photo"
accept="image/gif;image/jpeg"/>
<input type="submit"/></form>';

//echo phpinfo();
?>

and here is the relevant portion of my php.ini (and yes, I've tried
channging umpload_tmp_dir to a dir that is 777. No good. (and why
should I have to anyway, it worked before)).
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default
if not
; specified).
;upload_tmp_dir =/tmp

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
Jul 17 '05 #1
0 7357

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by lawrence | last post: by
3 posts views Thread by Bob Bedford | last post: by
6 posts views Thread by Shelly | last post: by
2 posts views Thread by chris | last post: by
8 posts views Thread by mpar612 | last post: by
1 post views Thread by wbsurfver | last post: by
3 posts views Thread by skulkrinbait | last post: by
5 posts views Thread by Karl | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.