RE: [PHP] ftp_problem - ... php_network_getaddresses: getaddrinfo failed: ...

From: Date: Sat, 26 Oct 2002 05:37:46 +0000
Subject: RE: [PHP] ftp_problem - ... php_network_getaddresses: getaddrinfo failed: ...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121518@lists.php.net to get a copy of this message
By: "...ll get the setup id error. And to answ..." I meant "... stupid ...". - Victor | www.argilent.com -----Original Message----- From: vic [mailto:siliconhype@yahoo.ca] Sent: Saturday, October 26, 2002 1:36 AM To: 'vic'; 'John Nichel' Cc: php-general@lists.php.net Subject: RE: [PHP] ftp_problem - ... php_network_getaddresses: getaddrinfo failed: ... So I tried this and I still get the setup id error. And to answer your question I have to get SSL going but there is too much work for that tonight, and my server doesn't allow telneting without SSL (and good for them). # set up basic connection $hostip = gethostbyname($ftp_server) or die ('Could not get FRP server IP'); echo ($hostip); # this apparently only adds "ftp." before $ftp_server $conn_id = ftp_connect($hostip) or die ('Could not establish FTP connection.'); - Victor | www.argilent.com -----Original Message----- From: vic [mailto:siliconhype@yahoo.ca] Sent: Saturday, October 26, 2002 1:30 AM To: 'John Nichel' Cc: php-general@lists.php.net Subject: RE: [PHP] ftp_problem - ... php_network_getaddresses: getaddrinfo failed: ... Could this be the problem? From the pho.net documentation on ftp_connect(): " I think what some other posts were trying to say which may need clarification is that in PHP 4.2.3, ftp_connect("myhost.com") was failing most of the time, except it would work like every few minutes. The fix is that ftp_connect seems to have a bug resolving addresses. If you do: $hostip = gethostbyname($host); $conn_id = ftp_connect($hostip); It seems to solve the problem. (Other users referred to an ftpbuf() error... not sure what that is, but this should fix it.) " - Victor | www.argilent.com -----Original Message----- From: John Nichel [mailto:jnichel@by-tor.com] Sent: Saturday, October 26, 2002 1:07 AM To: vic Cc: php-general@lists.php.net Subject: Re: [PHP] ftp_problem - ... php_network_getaddresses: getaddrinfo failed: ... Can you ftp to the site from the box that the script is running on (via command line or GUI client)? vic wrote: > Never mind, problem NOT solved, I made an error in an earlier script and > that error interrupted this one so I thought it cleared, but alas, it > did not, so help still needed, if available, thanks. > > - Victor | www.argilent.com > > -----Original Message----- > From: vic [mailto:siliconhype@yahoo.ca] > Sent: Saturday, October 26, 2002 12:48 AM > To: victor@argilent.com; php-general@lists.php.net > Subject: RE: [PHP] ftp_problem - ... php_network_getaddresses: > getaddrinfo failed: ... > > Ok, found problem, script ok, but a $_POST['...']; needed to be added to > the secure script as it was taking the pass from a form. > > - Victor | www.argilent.com > > -----Original Message----- > From: victor [mailto:victor@argilent.com] > Sent: Saturday, October 26, 2002 12:34 AM > To: php-general@lists.php.net > Subject: [PHP] ftp_problem - ... php_network_getaddresses: getaddrinfo > failed: ... > > Any tips on trouble shooting this problem? > > Warning: php_network_getaddresses: getaddrinfo failed: Name or > service not known in /xxx/xxx/xxx/xxx/new_user.php on line 121 > Could not establish FTP connection. > > This is the code the error refers to: > > # set up basic connection > $conn_id = ftp_connect($ftp_server) > or die ('Could not establish FTP connection.'); > > The config file is somewhere else on the server - outside the public dir > for sec. reasons. > > The info is correct. - I cannot divulge it, but it is correct (or let's > assume it is), so where to now??? > > - Victor | www.argilent.com > > > ______________________________________________________________________ > Post your free ad now! http://personals.yahoo.ca > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ______________________________________________________________________ Post your ad for free now! http://personals.yahoo.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca

« previous php.general (#121518) next »