note 21819 deleted from function.ftp-put by dams
| From: | dams@php.net | Date: | Tue, 28 May 2002 19:17:23 +0000 |
| Subject: | note 21819 deleted from function.ftp-put by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-31120@lists.php.net to get a copy of this message | ||
I use 2 file... first to select file to put (i use <input type=file>) and second to put
selected file (with php code)... but return page give me an error:
Warning: error opening (name src file)in (name php page) on line 42
php function is:
(error appear in function ftp_put)
function ftpupload($dst_file,$src_file){
global $conn_id;
global $path;
$errorecon=!ftp_chdir($conn_id,$path);
if(!$errorecon){
$errorcon=ftp_put($conn_id,$dst_file,$src_file,FTP_BINARY);
}
return $errorcon;
}