Creating a secure FTP server in php. I have the following:
curl_setopt(self::$FTP, CURLOPT_URL, "ftp://".$user.":".$pass."@".$host); curl_setopt(self::$FTP, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt(self::$FTP, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt(self::$FTP, CURLOPT_FTP_SSL, CURLFTPSSL_TRY); curl_setopt(self::$FTP, CURLOPT_FTPLISTONLY, TRUE); curl_setopt(self::$FTP, CURLOPT_RETURNTRANSFER, 0); curl_exec(self::$FTP);
this is normal. How to create directories?
source share