Well, this is a bit embarassing, but I can't get files to upload from a form. I'm convinced it's a config setting, but I can't figure out what. Maybe it's just that I'm working on the weekend 🙂 Ok, so here's a very basic script I'm trying to run:
<BODY>
<?php
echo "IMAGE NAME IS $userfile_name <BR>";
echo "IMAGE TYPE IS $userfile_type <BR>";
echo "FILESIZE IS: $userfile_size <BR><BR><BR>";
?>
<FORM method=POST ENCTYPE="multipart/form-data">
<INPUT NAME="userfile" TYPE="file" size=35>
<INPUT TYPE="submit">
</FORM>
</BODY>
I choose a file, submit it, and the $userfile variables,including $userfile itself, are all empty.
My php.ini has file_uploads = On.
I configured php with the following:
./configure --with-mysql=/usr/local/mysql \
--with-xml \
--with-apache=../apache_1.3.26 \
--enable-track-vars \
--enable-trans-sid \
--enable-magic-quotes \
--enable-ftp
Can anyone see anything obviously wrong? I've done this before(without problems), but not on this particular install.
Thanks,
John Gerstenslager