On 24/05/07, Al [EMAIL PROTECTED] wrote:
Can anyone help with this. On a Linux/Apache server.
I want to simply copy a file with ftp_put() from one dir to another.
To make certain I'm pointing to the correct dirs, I'm using this:
print_r(ftp_nlist($conn_id, FTP_EP_DIR)); //It is the correct
Can anyone help with this. On a Linux/Apache server.
I want to simply copy a file with ftp_put() from one dir to another.
To make certain I'm pointing to the correct dirs, I'm using this:
print_r(ftp_nlist($conn_id, FTP_EP_DIR)); //It is the correct dir
print_r(ftp_nlist($conn_id, $rpdir));
On Thursday 16 December 2004 00:54, Lowell Allen wrote:
But trying to avoid writing to the local server by using ftp_put()
instead, this does not work:
My manual says ftp_put() - Uploads a file to the FTP server
And no, I can't find any command to upload a string in memory as a file. If
you
I'm trying to FTP a string value as a file without writing it to the
local server as a file, but I can't get ftp_put() to work. If I read a
file from the server, ftp_fput() works:
$fh = fopen(test.txt, r);
$upload = ftp_fput($conn_id, $destination_file, $fh, FTP_ASCII);
if(!$upload) {
4 matches
Mail list logo