ID: 15102 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Reproducible crash Operating System: Red Hat 7.2 PHP Version: 4.0.6 New Comment:
It should work. It's probably a configuration problem (echo'ing $userfile should print out the temporary filename of the uploaded file). Can you provide some more information, like what's in the error log? Previous Comments: ------------------------------------------------------------------------ [2002-01-18 11:08:12] [EMAIL PROTECTED] A simple standard form is used to upload a file <form action="upload.php" enctype="multipart/form-data" method="post"> File: <input type="file" MAX_FILE_SIZE="10000" name="userfile"> <input type="submit" value="send"> </form> The php script says: #!/usr/local/bin/php <?php echo $userfile; ?> My ISP upgraded from PHP 4.0.2 to 4.0.6 and at the same time from Redhat 6.1 to 7.2. Apache is 1.3.20. I've been battling with my ISP (Interland) who says that since i'm not doing anything with the file, this can't work. I gave up trying to teach them PHP after the "senior PHP support specialist" told me that can't work (I wonder why it did before, then). What happens is the file gets uploaded (takes time to upload, so it is definitely transfering it), then I get the Internal Server Error 500. I don't see the file on /tmp. There is no php.ini anywhere on the server, so I guess the default values are taken. The phpinfo() looks fine to me. This worked fine on 4.0.2 and 3.0.9. I tried uploading a file using perl and that works, but i want to use php. Help! ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15102&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]