php cli windows ftp_connect fails getaddrinfo failed: no such host is known

i have a windows 7 machine
i use php 5.4 CLI

when i try to use ftp_connect:

$conn_id = ftp_connect("10.192.35.100‎");

the the following error raise and connection fails:

getaddrinfo failed: no such host is known

when i try to use FTP from CMD i can reach the ftp server (which is in the inner network)

it seems like DNS problem but i don’t use a domain name but ip address.
i tried using the machine external ip address but got the same problem.

any idea about this wierd problem?


Source: php

Leave a Reply