?php
class myftp {
var $connector;
var $getback;
function connect($ftp_server, $uname, $passwd){
// Baut grundlegende FTP Connection auf
$this-connector = @ftp_connect($ftp_server);
$this-login_result = @ftp_login($this-connector, "$uname", "$passwd");
if ((!$this-connector)
(!$this-login_result))
{
echo "FTP connection has failed! \n";
echo "Attempted to connect to $ftp_server...[ 查看全文 ]