FTPS transfers
| From: | Jason Petersen | Date: | Mon, 26 Sep 2005 17:15:19 +0000 |
| Subject: | FTPS transfers | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-223209@lists.php.net to get a copy of this message | ||
Hello List,
I'm having some issues with PHP's FTPS support. I'm using ftp_ssl_connect()
to establish a connection (which is successful), however I am unable to
retrieve a directory listing or upload files. Does anyone have advice for
getting this to work? The uploaded file is created with a filesize of zero.
My code looks something like this:
$conn = ftp_ssl_connect($FTP['host']);
$result = ftp_login($conn, $FTP['user'], $FTP['pass']);
$file = 'test.txt';
$fp = fopen($file, 'r');
ftp_fput($conn, $file, $fp, FTP_ASCII)
fclose($fp);
ftp_close($conn);
Thanks,
Jason