Perhaps anybody can help me.
I spent almost a day figuring out what's the problem with ftp_put and found out that ftp_put we are not suppose to use paths
ftp_put($conn_id, "www/images/2007/09/1000.gif, "www/images/2007/09/1000.gif", FTP_BINARY);
Here's the scenario of my upload script
- user browse file, and upload to the server. Uploaded files are temporary stored on images folder with YEAR/MONTH format
- using image magic, I generate thumbnail
3. ftp_put should retrieve that 2 images (original and thumbnail) and move the files to server B (image server)
- php script remove the images uploaded on webserver (server A)
so my problem is now on 3
So anybody can show me how to do this?