FTP/PHP error when online

cbisson's Avatar
Newbie Member
Hello,

I need to make a little web application for a client who needs to upload multiple files related to a certain software. Some of the files may easily be over 50Mb.

I'm using FTP functions of php to do so. When I test locally and transfer the files on an online server, the files are transfered correctly. When I test online to upload on the same online server, the file just doesn't get transfered.

I checked if FTP was enabled and it is, and they have php 4.

I also tried on different servers and always seem to get stuck once online, so maybe there is something I'm missing here that I have to do when online???

Thank you for your help,

Chris
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
When you test it locally, the local network is faster than the online one, so I guess the online version gets timed out for large files! Set the time limit for your script!
0
cbisson's Avatar
Newbie Member
Thanks for your reply,

actually I already did set the lmit to "none".

I even tried testing with little 200Kb files and it still doesn't work.


Chris
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
use
Code: PHP
set_time_limit(0);

Try debugging for FTP messages!
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Do you have the upload enabled in your web server you are trying to upload?
0
cbisson's Avatar
Newbie Member
I already use set_limit(0) like I said, and yes FTP is enabled!

It there a way I can get specific error messages from the FTP???

I mean I return my own error message when the upload was not successful (either with ftp_put or ftp_nb_put)which doesn't tell me more that the file couldn't be uploaded, but an error coming from FTP saying like "wrong path " or whatever would be helpful!

Chris