LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   file up/download php client on linux server (https://www.linuxquestions.org/questions/programming-9/file-up-download-php-client-on-linux-server-154880/)

sam99 03-08-2004 02:57 AM

file up/download php client on linux server
 
hello all,

i've programmed a small, browserbased file up/download client in php, which is running on a linux server.

everything works fine, just one thing is really driving me crazy: sometimes during downloading the file, the process is just stopping. it's not breaking the connection or sth, just the download rate goes down slowly to zero, and the transfer seems "freezed"...
but through an SSH-Transfer-Client, i can receive the files without problem...

are the files corrupted during download my script? does anybody has an idea, why it's this way?

i'd be happy about any help...

best regards
sam

Analyser 03-08-2004 03:15 AM

It could be your download is taking longer than the default timeout of (IIRC) 30 seconds. Have a look at http://nl.php.net/set_time_limit

Another possibility might be that you're exceeding the maximum allowed size one may upload to the web server. More info at http://nl.php.net/features.file-upload .

Good luck! :)

sam99 03-09-2004 04:10 AM

hi analyser,

unfortunately, it can't be one of this points...
i've set the timelimit to 30 minutes, and the post upload size to 400 mb...(and some people also did successfully up + download a 400 mbyte file)

regards,
sam

Analyser 03-09-2004 09:57 AM

Could be some nasty network congestion somewhere. Have you been able to reproduce the mal-behaviour yourself? If so, try using some sort of network traffic analyser (ethereal is nice). Other than that I really don't have a clue. You could try one of PHP's official mailing-lists. If they don't know either, then maybe the Apache people have a clue :)

Sorry I can't be of more help. Good luck!

sam99 03-10-2004 06:54 AM

i've just found out that the same problem exists with JPG images...and there i found an anwser: in some JPG are XML tags, and as it seems, this causes exactly the same error. so maybe the files which causes the problem on my server has also some XML content...

well, thanks anyway for your replies :-)
sam

Technonotice 03-10-2004 05:06 PM

Quote:

Originally posted by sam99
i've just found out that the same problem exists with JPG images...and there i found an anwser: in some JPG are XML tags, and as it seems, this causes exactly the same error. so maybe the files which causes the problem on my server has also some XML content...

well, thanks anyway for your replies :-)
sam

Complete shot in the dark here... but could Apache be trying its Mime Magic stuff on the JPEG file? It may detect it as a jpg first but perhaps the XML content is confusing it?


All times are GMT -5. The time now is 03:51 AM.