note 20097 rejected from function.ftp-put by alindeman
| From: | alindeman@php.net | Date: | Fri, 22 Mar 2002 21:57:36 +0000 |
| Subject: | note 20097 rejected from function.ftp-put by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-28094@lists.php.net to get a copy of this message | ||
Getting the error:
"Warning: error opening"
My code is:
$destination_file = $photofile;
$conn_id = ftp_connect("localhost");
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
$cd = ftp_chdir ($conn_id, "/public_html/path/to/desired/directory");
$upload = ftp_put($conn_id, $destination_file, $photofile, FTP_BINARY);