And you've checked to make sure that the user the web server is running as has access to write to the temp directory, and the directory you're attempting to upload to correct?
Ryan -----Original Message----- From: Brian J. Hoffman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 3:14 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] File upload timeout. I'm trying to do a simple file upload using the sample code from php.net, but after trying everything under the sun, it still doesn't work. I've tried most of the suggestions on php.net and have searched the archives of this mailing list, still to no avail. When I click on "Send File", it appears to be attempting to process the request, but the CGI eventually times out. I'm using very small files for my test files, so file size shouldn't be a problem. I've tried changing several things in the php.ini file also. Does anyone have any suggestions? I've included the code I'm using below. I'm running PHP 3.0.17 under Windows 2000 Professional and IIS 5.0. Thanks in advance, Brian UploadTest.php3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Untitled</title> </head> <body> <form enctype="multipart/form-data" action="UploadTestAction.php3" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="2097150"> Send this file: <input name="userfile" type="file"> <input type="submit" value="Send File"> </form> </body> </html> UploadTestAction.php3: <?php if (is_uploaded_file($userfile)) { copy($userfile, "Images/".$userfile); } else { echo "Possible file upload attack: filename '$userfile'."; } ?> -- PHP Windows 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] -- PHP Windows 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]