protected function _cmdPutScript($scriptname, $scriptdata) { $this->_checkAuthenticated(); $command = sprintf("PUTSCRIPT %s {%d+}\r\n%s", $this->_escape($scriptname), strlen($scriptdata), $scriptdata); $this->_doCmd($command); }