This is baffling to me. When I write a function, and call it, I get an error. BUT, if I just copy the damn thing and paste into the script I want to use it in, it works fine.
I have
at the start of my script, then the function name where I want to use it. The errors I'm getting are on the functions.php script page.
Any ideas?
I have
Code:
include ("includes/functions.php");
at the start of my script, then the function name where I want to use it. The errors I'm getting are on the functions.php script page.
Code:
[B]Warning[/B]: ftp_connect() [[URL="http://www.halfmoononline.com/function.ftp-connect"]function.ftp-connect[/URL]]: php_network_getaddresses: getaddrinfo failed: Name or service not known in [B]/home/xxxxxxx/public_html/halfmoononline/includes/functions.php[/B] on line [B]66[/B]
Couldn't connect to
Any ideas?