note 21819 added to function.ftp-put
| From: | fabbrice at interfree dot com | Date: | Tue, 28 May 2002 14:50:04 +0000 |
| Subject: | note 21819 added to function.ftp-put | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31097@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;
}
--
http://www.php.net/manual/en/function.ftp-put.php
http://master.php.net/manage/user-notes.php?action=edit+21819
http://master.php.net/manage/user-notes.php?action=delete+21819
http://master.php.net/manage/user-notes.php?action=reject+21819