Html Form Timing Out

admin

Administrator
Staff member
Hi,<br /><br />I'm having a real problem with an HTML form when uploading large files, as of today. Yesterday, uploading a 5mb file with the form was not a problem (thanks to setting a couple php variables in .htaccess), but today the script always times out at 30 seconds.<br /><br />So after talking to the help desk, who says it's on my end, I set up the most simple script possible at <!-- w --><a class="postlink" href="http://www.midsouthtalent.com/test.php">www.midsouthtalent.com/test.php</a><!-- w --> but it still times out (this one at 60 seconds).<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec--><form method="post" enctype="multipart/form-data" action="/admin/test.php"><br /><input type="hidden" name="MAX_FILE_SIZE" value="14000000"><br /><p>Video 1:<br><br /><input type="file" name="video1" class="form_textbox"><br /><input type="submit" name="submit" value="Update Artist" class="form_button"></p></form><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Any ideas as to why the thing times out? Feel free to try to upload a file around 8mb or larger--nothing is set to happen on execution of this text script.<br /><br />Thanks!<br />Dave<!--content-->
Have you increased the variable in the htaccess file to allow larger files?<!--content-->
<!--quoteo(post=187254:date=Aug 4 2006, 06:33 PM:name=TCH-Bruce)--><div class='quotetop'>QUOTE(TCH-Bruce @ Aug 4 2006, 06:33 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=187254"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->Have you increased the variable in the htaccess file to allow larger files?<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />The php variable, yes, and that was great until today.<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->php_value upload_max_filesize 15m<br />php_value post_max_size 40m<br />php_value max_execution_time 240<br />php_value max_input_time 240<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Is that what you're referring to, Bruce?<br /><br />Thanks!<!--content-->
Yes, that was it. But I think if you try this it will work<br /><br />php_value upload_max_filesize 15M<br />php_value max_execution_time 800<br /><br />Note that the "M" is a capital letter and not lower case.<!--content-->
<!--quoteo(post=187256:date=Aug 4 2006, 06:55 PM:name=TCH-Bruce)--><div class='quotetop'>QUOTE(TCH-Bruce @ Aug 4 2006, 06:55 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=187256"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->Yes, that was it. But I think if you try this it will work<br /><br />php_value upload_max_filesize 15M<br />php_value max_execution_time 800<br /><br />Note that the "M" is a capital letter and not lower case.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Same thing.... "The connection to the server was reset while the page was loading" right at 60 seconds. In this case it's not really a php script--it doesn't have any php to it. I read about this happening when cgi has its own time limit set, but I have no clue if there's such a thing. I dunno....<!--content-->
Sorry, I don't know what else to try other than tell you to use an FTP client to upload. <br /><br />Maybe someone else will have an answer.<!--content-->
Thanks anyway Bruce. I'll see if any answers come and then get the support desk back.<!--content-->
For reference purposes, I am in Southern MS, using Comcast cable internet and it timed out for me trying to upload a file called test.fib (8.8M) at 31.823 seconds.<br /><br />You can refer the helpdesk to me, if they want to verify that it is not just you. My domain is <a href="http://semperphi.com" target="_blank">http://semperphi.com</a><!--content-->
<!--quoteo(post=187263:date=Aug 4 2006, 11:26 PM:name=Steve Scrimpshire)--><div class='quotetop'>QUOTE(Steve Scrimpshire @ Aug 4 2006, 11:26 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=187263"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->For reference purposes, I am in Southern MS, using Comcast cable internet and it timed out for me trying to upload a file called test.fib (8.8M) at 31.823 seconds.<br /><br />You can refer the helpdesk to me, if they want to verify that it is not just you. My domain is <a href="http://semperphi.com" target="_blank">http://semperphi.com</a><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Thanks Steve!<!--content-->
Is this PHP?<br /><br />//disable script timeout<br />set_time_limit(0);<!--content-->
Depends, it would need to be included into a php file if it was.<br /><br />JimE<!--content-->
 
Back
Top