Bug #14748: ftp_put problems

From: Date: Fri, 28 Dec 2001 22:21:26 +0000
Subject: Bug #14748: ftp_put problems
Groups: php.dev 
Request: Send a blank email to php-dev+get-75225@lists.php.net to get a copy of this message
From: blaloggia@cwplus.com Operating system: Unix PHP version: 4.0.5 PHP Bug Type: FTP related Bug description: ftp_put problems Okay, I've scoured the bug reports and the message lists and I'm not convinced that it's even possible to upload from a local file to an ftp server using ftp_put. No one seems to have a good answer to the multiple listings of people having this problem. I don't believe my problem is a security problem. My problem is that PHP wants to use the directory that my PHP program is in as the default directory for uploading. ftp_put won't recognize my C: drive as a local drive. Here is the gist of the code that doesn't seem to be working: $host = "ftp.cwplus.com"; $user = "username"; $password = "password"; $remotefile = "/www/cwplus/wendy/images/$filename"; $conn = ftp_connect("$host"); ftp_login($conn, $user, $password); ftp_put($conn, $remotefile, "C:/test.txt", FTP_BINARY)) I've done all kinds of slash manipulation for the local file and none seem to help. Thanks, Bob -- Edit bug report at: http://bugs.php.net/?id=14748&edit=1

« previous php.dev (#75225) next »