示例#1
0
文件: ftp.php 项目: my1977/shopnc
 public function ftp_chmod($filename, $mod = 511)
 {
     $filename = NcFtp::clear($filename);
     if (function_exists("ftp_chmod")) {
         return ftp_chmod($this->connectid, $mod, $filename);
     }
     return ftp_site($this->connectid, "CHMOD " . $mod . " " . $filename);
 }
示例#2
0
文件: ncftp.php 项目: noikiy/ejia
	public function ftp_chmod($filename, $mod = 0777) {
		$filename = NcFtp::clear($filename);
		if(function_exists('ftp_chmod')) {
			return @ftp_chmod($this->connectid, $mod, $filename);
		} else {
			return @ftp_site($this->connectid, 'CHMOD '.$mod.' '.$filename);
		}
	}