ftp problems
| From: | (tripwater) | Date: | Wed, 03 Aug 2005 17:45:31 +0000 |
| Subject: | ftp problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-219917@lists.php.net to get a copy of this message | ||
Hello, I have a site that allows developers to upload current modules to the webserver. It has been requested that when this is done, I also ftp a backup copy to a remote server. Something is wrong here. The file upload code works. The back ftp code works,only if I comment out the move_uploaded_file() function. I can not get them both to work. After the move_uploaded_file() function moves the file to the webserver, the ftp_put() fails, but if I comment out the move_uploaded_file(), the ftp_put() works. Can anyone help me with this? I have posted this on other forums and working on this for a couple of weeks now.
1. I am uploading the module to the webserver. 2. Then in the next step want to ftp same module to backup server.
I tried posting my code but it got rejected by the server for security reasons...