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); }
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); } }