Skip to content

Instantly share code, notes, and snippets.

@zubinJiang
zubinJiang / php ftp组建扩展类
Created August 31, 2012 04:17
php ftp组建扩展类
<?
class ftp {
var $ftpUrl = '';
var $ftpUser = '';
var $ftpPass = '';
var $ftpDir = '';
var $ftpR = ''; //R ftp资源;
var $status = '';
//R 1:成功;2:无法连接ftp;3:用户错误;
function ftp($ftpUrl="", $ftpUser="", $ftpPass="", $ftpDir="") {