php script time limit 90 sec - downloading bigger files problem

Started by gafai, April 17, 2012, 10:16:48 AM

Previous topic - Next topic

gafai

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

kat

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...

gafai

Yes you understand... but they will not change it... i talk with them about it....  Another solution?

kat

Other than changing host, none that I know of.

Of course, I could be wrong.

Thantos

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).

gafai

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?

kat


IchBin™

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.
IchBin™        TinyPortal

Advertisement: