LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-08-2004, 02:57 AM   #1
sam99
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
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
 
Old 03-08-2004, 03:15 AM   #2
Analyser
LQ Newbie
 
Registered: Mar 2004
Location: Delft, The Netherlands
Posts: 2

Rep: Reputation: 0
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!
 
Old 03-09-2004, 04:10 AM   #3
sam99
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 03-09-2004, 09:57 AM   #4
Analyser
LQ Newbie
 
Registered: Mar 2004
Location: Delft, The Netherlands
Posts: 2

Rep: Reputation: 0
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!
 
Old 03-10-2004, 06:54 AM   #5
sam99
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 03-10-2004, 05:06 PM   #6
Technonotice
Member
 
Registered: Mar 2004
Location: UK
Distribution: Debian Unstable
Posts: 58

Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fast Download Site for Linux, enables >4GB Download of single file TigerLinux Linux - Distributions 9 10-29-2005 12:45 PM
email stops download from server to client mbresnahan Linux - Security 1 08-12-2005 07:56 PM
can not connect to my pureftp server from Linux client, but i can from windows client bonito Suse/Novell 5 03-16-2005 09:45 PM
Setting up a home web server with PHP, MySQL, and a mail client Kyle_D Linux - General 1 01-14-2005 01:52 AM
PHP: upload file to client... ugenn Programming 3 08-26-2002 10:59 AM


All times are GMT -5. The time now is 01:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration