Thread: ftp

    #1
  1. No Profile Picture
    =) wannabe?
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 2002
    Location
    florida
    Posts
    2,153
    Rep Power
    15

    ftp


    Hi

    if ftp_chdir selects the dir to which the file will be uploaded on the ftp server. how can i select the dir from which the file will be uploaded?

    Also, is there an article about ASCII and BINARY and other ( if there are any)

    thank you
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    191
    how can i select the dir from which the file will be uploaded?
    chdir()?
    the path you supplied in fopen() or similar?

    Also, is there an article about ASCII and BINARY and other ( if there are any)
    always use binary. unless you are using a very old server software or browser.
  4. #3
  5. No Profile Picture
    =) wannabe?
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 2002
    Location
    florida
    Posts
    2,153
    Rep Power
    15
    fopen()? I'm a newbie i don't know a lot of stuff. I'm just having problems uploading stuff from directories other than C:\
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    191
    q: how are you choosing the file to upload?

    ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY);

    what is your "$source_file"? this is where you put the folder in...
  8. #5
  9. No Profile Picture
    =) wannabe?
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 2002
    Location
    florida
    Posts
    2,153
    Rep Power
    15
    yea same format.

    source file is test.gif. Do I just put the whole dir? C:\folder\test.gif

    =))
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    191
    yes...
  12. #7
  13. No Profile Picture
    =) wannabe?
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 2002
    Location
    florida
    Posts
    2,153
    Rep Power
    15
    okey dokey =) thanks a million =)

IMN logo majestic logo threadwatch logo seochat tools logo