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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED]; [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > 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