Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- PHP Upload
March 11, 2008, 9:27 pm
rate this thread
server, and it works fine with small files but not with large files
(20 mb). Am I right in assuming that that my php script is fine and
this is more of an issue with the server's bandwidth or is there
something I can do on my end to improve this. I'm assuming my
connection is timing out or something like that, is there anything I
can do to help maintain a connection for a long period of time?
any advice is appreciated
Re: PHP Upload
1) Use passive transfers for FTP.
If that doesn't do it:
2) Set the timeout value of PHP reasonably large (usually I'd say twice
the time you think it's going to take to transfer the file).
3) Allthough I'm not certain, I'd say make sure you have enough memory to
'hold' the file, perhaps there's a memory_limit issue