This topic is locked

Document download timout?

1/26/2006 10:45:50 AM
PHPRunner General questions
S
sloftus author

I've set a document upload field and set $cMaxUploadFileSize = 102410241024; in the _variable.php (include dir) to allow large files to be uploaded. This works fine whilst uploading.
However, I find that depending on download speed, there appears to be some kind of timeout somewhere that prevents large files being fully downloaded. after 2-3mb the download stops and after a further period the associated application related to the partially downloaded file attempts to open the file and fails (as not all the file has downloaded).
Has anyone else found this problem?

Sergey Kornilov admin 1/27/2006

Hi,
the download may fail due to script timeout.

Please try to increase it by adding this line into include\dbcommon.php

set_time_limit(3600);

Insert it into the beginning of file just after <?phpline

S
sloftus author 1/27/2006

Sergey,
As usual you've solved my problem in one. Thanks!
btw I also found that increasing the value for 'max_execution_time' in php.ini also had the same result...but I prefer to leave this setting at its default of 30 seconds and use your fix instead.

S
sloftus author 3/21/2007

Sergey,
Over a year has passed since you fixed the time out problem for me with set_time_limit(3600); in the dbcommon.php file. In the old version of php runner I was able to add this into the template editor so that it was automatically included in dbcommon.php on each rebuild. In the new version we don't have template editor so I have to remember each time I rebuild to add set_time_limit(3600); manually to dbcommon.php
Is there a way to make this change only once and not have to repeat it on every rebuild?
Regards,

J
Jane 3/21/2007

Just add this line to the C:/Program Files/PHPRunner3.2/source/include/dbcommon.php file and rebuild your project.

S
sloftus author 3/23/2007

Jane. Thank you. Problem solved.