adds banner

Wednesday, March 14, 2012

PHP FTP file upload need to upload multiple files

Hello,

I am currently writing a PHP script that uses FTP to transfer images to my web server. I have it all working correctly using the following statement:


Code:
$upload = ftp_put($conn_id, $target, $temp1, $temp2, FTP_BINARY);


Basically I need to upload 4 files and this method will only allow me to upload one. I have tried closing the connections and then restarting them in the same script to allow multiple uploads but I have not been successful.

Can anyone help me with getting multiple files uploaded??

Also if this the best way for me to be uploading images to the server???? Some of the images may be quite large (around 3 - 4Mb) or is there a better method of doing this?

Thanks,
J

No comments:

Post a Comment