RE: [PHP-WIN] File upload timeout.

From: Date: Wed, 21 Nov 2001 20:17:57 +0000
Subject: RE: [PHP-WIN] File upload timeout.
Groups: php.windows 
Request: Send a blank email to php-windows+get-10576@lists.php.net to get a copy of this message
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:biker4Christ@home.com] Sent: Wednesday, November 21, 2001 3:14 PM To: php-windows@lists.php.net 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: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#10576) next »