|
#1
|
|||
|
|||
|
While trying to make user download a file using headers the connection seems to be lost after a while so could someone please tell me how to work it out
http://www.chaska.com.pk/c1.php << here is the page with the following code file size = 4.19 MB connection is lost at around 1.91 MB using 64kps cable internet connection PHP Code:
your help in this regard would be highly appretiated |
|
#2
|
|||
|
|||
|
This usually happens because of the timeout. Every php is allowed to run only a small amount of time (by default 30 seconds). However, this is usually not enough when it comes to file download.
You can try to add this to your code: set_time_limit ( $seconds ) - where $seconds would be the amount you think it is safe for every user to download it. However, that function is not available on all servers, especially if php is built in safe mode.
__________________
Fun house - Everything you need for a good laugh Last edited by indy2kro : 12-06-2007 at 01:08 PM. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|