1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ftp_put question

Discussion in 'PHP' started by Dazed_and_confused, Jul 20, 2005.

  1. #1
    Hi,
    I'm using the function ftp_put in order to upload a specific file from my pc to the ftp server without a form.
    SEMrush
    The source file is c:\uploads\test.txt

    ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY);
    Code (markup):
    but it doesnt work, any ideas?
     
    Dazed_and_confused, Jul 20, 2005 IP
    SEMrush
  2. rvarcher

    rvarcher Peon

    Messages:
    69
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    FTP_ASCII for a text file instead of FTP_BINARY? How is it failing?
     
    rvarcher, Jul 20, 2005 IP
  3. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #3
    are you using the correct forward vs backward slashes in your file path? there's a difference if your server is windows or linux based...
     
    daboss, Jul 21, 2005 IP
  4. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What's the error message that php gives you?
     
    exam, Jul 21, 2005 IP