It seems like UniServer Zero XII with PHP 7 may be missing ftp support. I get the Undefined function error when trying to call ftp_connect, and the phpinfo() result is missing the FTP section that says "ftp support enabled". That section is there if I install the php 5.6 module.