Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I connect to ftps server through php?

Tags:

php

I want to connect to ftps server through php. I am using ftp_connect()

But I am getting this warning while connection:

Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: No such host is known.

can any one help?

like image 242
Poonam Bhatt Avatar asked Nov 15 '22 04:11

Poonam Bhatt


1 Answers

PHP has a built-in function for connecting to "FTPS" servers, since secure FTP is over an SSL connection. Check out the documentation for ftp_ssl_connect.

http://us.php.net/manual/en/function.ftp-ssl-connect.php

Hope this helps!

like image 137
Qix - MONICA WAS MISTREATED Avatar answered Dec 17 '22 06:12

Qix - MONICA WAS MISTREATED