Results 1 to 3 of 3

Thread: FTP Functions

  1. #1

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236

    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


  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    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
  •  



Click Here to Expand Forum to Full Width