예제 #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);
		}
	}