|
-
Apr 30th, 2003, 09:07 AM
#1
Thread Starter
Addicted Member
FTP Functions
I was wondering if anybody had used the PHP FTP functions. I'm trying to connect using the ftp_connect() function but I keep getting an error.
Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: gethostbyname failed in E:\web\intranet\destinations_ftp.php on line 4
I haven't a clue what the problem is. My only guess is I didnt format the FTP site filename correctly. This is what I pass ftp_connect..
ftp://64.IP.A.DD
do I need to format that a different way or what else could be the error?
Thanks
-
Apr 30th, 2003, 10:51 AM
#2
Stuck in the 80s
According to some comments in the manual, it must be in this format: ftp://ftp.hostname.com
Go read the comments: http://www.php.net/manual/en/function.ftp-connect.php
-
May 1st, 2003, 08:41 AM
#3
Thread Starter
Addicted Member
thanks, I read the comments but ended up just doing trial and error and determined that its just asking for the IP address... no FTP:// in front of it. At least thats the way it worked for me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|