|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo
help. i'm trying to use PHP's FTP functions but I get this error. Anyone can help me? What should I do?
|
|
#2
|
||||
|
||||
|
That's the entirety of your error?
|
|
#3
|
|||
|
|||
|
well, i used the simple ftp connection script on manual.
Quote:
the errors i get are Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /disk1/apache/htdocs/test/ftp3.php on line 5 Warning: ftp_login() expects parameter 1 to be resource, boolean given in /disk1/apache/htdocs/test/ftp3.php on line 8 FTP connection has failed!Attempted to connect to for user www Last edited by almightymike : May 26th, 2003 at 04:53 AM. |
|
#4
|
||||
|
||||
|
That means it can't find the FTP server you're talking about. Domain name doesn't exist, name resolution failed (DNS = dead), or ... I see.
$ftp_server = 'ourftpserver,port'; $conn_id = ftp_connect($ftp_server); I think, you want something like this: PHP Code:
I don't know if that was a typo or not, but I suggest you check out the prototype of ftp_connect() in the manual again ![]() hth. |
|
#5
|
|||
|
|||
|
WOW! it worked!! damn, thought something wrong with our installation.
Thanks jeb! Last edited by almightymike : May 26th, 2003 at 05:25 AM. |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|