Well I have built a script that is responsible for upload 20Mb of files at a
time. The possible probs are
1) A short disconnetion in the net connection can cause the upload to stall
2) Sometimes when I visit / post data on the same domain, the upload stalls
where as if I just leave that upload be and continue surfing on other sites,
it generally runs ok to the end.
3) Free space - wierd things happen when PHP is unable to write files on the
server (like your disk quota gets used up)
4) Check ifyour server has enough bandwidth to manage so many uploads at
once. Make sure the server does not get disconnected (This is unlikely, but
never the less check)

Hope it helps. All the best.

- Sid

----- Original Message -----
From: "Ivo Pletikosic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 03, 2003 11:29 AM
Subject: [PHP] Uploading files time out every so often


> Hello,
>
> I am currently involved in a site where users frequently need to upload
text
> files of various sizes. Every so often users will experience problems
where
> the uploads will start timing-out and need to be reinitiated.
>
> The timeout problem comes and goes, so far I've been unable to find the
root
> cause. It happens with files of all sizes, from 10k to several MB,
> eventually they all get uploaded, tho sometimes it can take days
re-trying.
>
> Another issue is experienced when the above symptom is happening which
makes
> me think they're related. An additional tool on the site writes out files
> with information provided by a user thru a form. A user submits a form
with
> some text and php writes out a file with the received info and notifies
the
> user the task was done. Every so often the browser will timeout with no
file
> written out by php or notification. This symptom can go on for days. The
> info being written to a file is never longer than a dozen lines of text so
> it's quite small.
>
> Initially we thought that the server just did not have the resources to
> service simultaneous uploads but monitoring tools show the cpu appears to
be
> near idle when this is experienced. I've experienced the file writing
> problem when I was the only user on the server with all unnecessary
services
> disabled. The browser will just time out, then one days voila! it works
> until the next problem day.
>
> This is on a Linux box with Apache 1.3, php 4.2.2 & experienced across
> multiple browsers. All the scripts have set_time_limit(0). File system has
> the proper permissions and with plenty of free space.
>
> We've been collecting quite a lot of info from the server to try to
capture
> it's state at the time of the problem but nothing raises any flags.
>
> Has anyone experienced this issue or a similar issue? Any pointers and
help
> is greatly appreciated.
>
> Ivo
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to