Re: [PHP] ftp_connect error w/ 4.3.4RC1

This is a discussion on Re: [PHP] ftp_connect error w/ 4.3.4RC1 within the PHP General forums, part of the PHP Programming Forums category; Hi, Sounds like a DNS problem more than anything else. Have you tried to dig that hostname? best regards raditha ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-29-2003
Raditha Dissanayake
 
Posts: n/a
Default Re: [PHP] ftp_connect error w/ 4.3.4RC1

Hi,
Sounds like a DNS problem more than anything else. Have you tried to dig
that hostname?

best regards
raditha



Jay Blanchard wrote:

>I get the following error when running a script from CRON using PHP
>4.3.4RC1 on FreeBSD
>
>(CRON statement)
>
>/usr/local/bin/php -q /usr/local/www/data.default/crm/parsecdr.php
>
>PHP Warning: ftp_connect(): php_network_getaddresses: getaddrinfo
>failed: No address associated with hostname in
>/usr/local/www/data.default/crm/parsecdr.php on line 36
>
>// ftp variables
>$ftp_server = "rc.server.name";
>$ftp_user = "user";
>$ftp_pass = "pass";
>
>// connect to ftp server
>$ftpc = ftp_connect($ftp_server); <---- LINE 36
>
>I have searched everywhere, inlcuding bug reports that lead nowhere. Can
>anyone point me in the right direction? (I had no problems with this on
>previous versions of PHP and this has cropped up since the upgrade.)
>
>TIA and Happy Holidays!
>
>
>



--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:37 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0