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?
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With