note 10093 added to ftp_put

From: Date: Wed, 13 Dec 2000 05:02:09 +0000
Subject: note 10093 added to ftp_put
Groups: php.notes 
Request: Send a blank email to php-notes+get-8669@lists.php.net to get a copy of this message
$m_result = ftp_connect($m_server,21) or die ("Failed"); $m_connect = ftp_login($m_result,$m_username,$m_password) or die("Failed"); ftp_chdir($m_result,$m_path); ftp_put($m_result, $uploadfile_name, $uploadfile,FTP_BINARY); ftp_quit($m_result); ====================================================================== When I run the above PHPscript, the following error displayed: "ftp_put: Can't build data connection: Connection refused" Note: OS=Win2000 Prof. WebServer=Apache 1.3.9 & IIS5 (test) PHP=4.0.3pl1 http://www.php.net/manual/function.ftp-put.php

« previous php.notes (#8669) next »