$_FILES empty

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mrbog

    $_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="multip art/form-data">
    <input type="file" name="player1ph oto"
    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_file size = 2M
Working...