Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Topic started by: gafai on April 17, 2012, 10:16:48 AM

Title: php script time limit 90 sec - downloading bigger files problem
Post by: gafai on April 17, 2012, 10:16:48 AM
I detected with support of my webhosting, that php script is limited to 90 seconds.
SMF downloading is based on php scripts
therefore when i want download bigger files (up to 100MB) with less download speed php script is stoped by server after 90 seconds and download full file is unavailable.....

How to patch download system of smf?

Any ideas.. or solution?
Thanks
Title: Re: php script time limit 90 sec - downloading bigger files problem
Post by: kat on April 17, 2012, 11:35:40 AM
If I've understood you correctly, which I somehow doubt, I would say that you need to speak with your host, again. Tell them that they have a php.ini file which they can change, for you, to put this right.

If I've understood you correctly...
Title: Re: php script time limit 90 sec - downloading bigger files problem
Post by: gafai on April 17, 2012, 11:39:36 AM
Yes you understand... but they will not change it... i talk with them about it....  Another solution?
Title: Re: php script time limit 90 sec - downloading bigger files problem
Post by: kat on April 17, 2012, 11:56:15 AM
Other than changing host, none that I know of.

Of course, I could be wrong.
Title: Re: php script time limit 90 sec - downloading bigger files problem
Post by: Thantos on April 17, 2012, 12:02:48 PM
AFAIK file uploads don't count against the scripts execution time as PHP isn't fired off until the uploads (and thus the request) are complete.  From http://php.net/manual/en/features.file-upload.php I see that there is a max_input_time configuration setting that can be set.  However, that is something that has to be done at an ini or .htaccess level and can't be done via the script (since it hasn't started yet).
Title: Re: php script time limit 90 sec - downloading bigger files problem
Post by: gafai on April 18, 2012, 08:28:10 AM
Thantos - not upload, but donwload problem


K@ - they say me that if i will download files directly, that will solve problem....
is possible to change download system to something TEMP download folder?
Title: Re: php script time limit 90 sec - downloading bigger files problem
Post by: kat on April 18, 2012, 08:47:57 AM
Are you using a mod, for this?

If so, which one?
Title: Re: php script time limit 90 sec - downloading bigger files problem
Post by: IchBin™ on April 18, 2012, 10:56:39 AM
You really shouldn't serve downloads directly. Doing this means allowing someone to directly access a file on your server. Which could potentially offer someone a way to gain access to your server if someone uploads a rogue script of some kind.

You are likely stuck with this unless you can convince your host to allow you more execution time. What are you uploading that takes more than 90 seconds to download? It sounds like you want SMF to be a download system, which is not really what it is intended to be.