RE: [PHP] ftp problems
| From: | Jay Blanchard | Date: | Wed, 03 Aug 2005 17:51:54 +0000 |
| Subject: | RE: [PHP] ftp problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-219920@lists.php.net to get a copy of this message | ||
[snip]
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.
[snip]
And now you have posted it here twice within 30 minutes under different
headers.
[snip]
1. I am uploading the module to the webserver.
2. Then in the next step want to ftp same module to backup server.
[/snip]
Looks like a pretty good flowchart. move_uploaded_file() is part of the
upload process. Then you want to ftp the file from where you moved it to
with your ftp process. move_uploaded_file() is not part of ftp
[snip]
I tried posting my code but it got rejected by the server for security
reasons...
[/snip]
Cut and paste your code into the e-mail, attachments to lists aren't
generally welcomed.