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.
"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.
> 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.
Cheers Garin, you seem to know everything about PHP - what do you do?
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.
"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.