TypeError thrown
ftp_nlist(): Argument #1 ($ftp) must be of type resource, null given