GetDotted Domains

Viewing Thread:
"ftp_put problem"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Thu 23/12/04 at 14:13
Regular
"Pouch Ape"
Posts: 14,499
I've used this PHP command dozens of times, but it just won't work this time round. The message relates to the ftp_connect, saying that the first parameter is Boolean...but it's not.

"ftp_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known in ...blha blayh blah

Warning: ftp_login() expects parameter 1 to be resource, boolean given in ..,.blah blah blah"

The ftp_server variable is correct, as are the password, username, etc. I've tried it on and off passive. Can't see any reason why it won't work.
Thu 23/12/04 at 16:24
Regular
"Devil in disguise"
Posts: 3,151
monkey_man wrote:
> Cheers Garin, you seem to know everything about PHP - what do you do?

I hardly know everything, have been a web developer for quite a few years now and learned a few things along the way.
Thu 23/12/04 at 15:28
Regular
"Pouch Ape"
Posts: 14,499
Yay, the gethostbyname thingy worked!

Cheers Garin, you seem to know everything about PHP - what do you do?
Thu 23/12/04 at 14:58
Regular
"Devil in disguise"
Posts: 3,151
Could be several things.. if you're doing something like

ftp_connect("www.monkeyman.com");

try this instead..

$resolved = gethostbyname("ftp.monkeyman.com");
ftp_connect($resolved);

There was supposedly a bug in php that made it fail lookups during ftp_connect sometimes, I don't know if it was ever resolved. Also if you're obtaining the server address from elsewhere make sure you strip it of \r \n etc. as its very picky.
Thu 23/12/04 at 14:13
Regular
"Pouch Ape"
Posts: 14,499
I've used this PHP command dozens of times, but it just won't work this time round. The message relates to the ftp_connect, saying that the first parameter is Boolean...but it's not.

"ftp_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known in ...blha blayh blah

Warning: ftp_login() expects parameter 1 to be resource, boolean given in ..,.blah blah blah"

The ftp_server variable is correct, as are the password, username, etc. I've tried it on and off passive. Can't see any reason why it won't work.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Just a quick note to say thanks for a very good service ... in fact excellent service..
I am very happy with your customer service and speed and quality of my broadband connection .. keep up the good work . and a good new year to all of you at freeola.
Matthew Bradley
Wonderful...
... and so easy-to-use even for a technophobe like me. I had my website up in a couple of hours. Thank you.
Vivien

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.