Thread: PHP and FTP

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Location
    Amman, Jordan
    Posts
    6
    Rep Power
    0

    Question PHP and FTP


    Hi
    I have 2 questions:

    1- Which is better to use, ftp functions or file functions to do some operations such as:
    delete a file
    chmod
    make a directory

    And can I do everything using the ftp functions such as:
    copying and moving files.
    downloading files to my PC.
    Create a new file.


    2- Can I build a complete FTP client using PHP? And what are the advantages and the disadvantages for it?
    I heard that there would be an uploading problems!!

    thx.
  2. #2
  3. Second highest poster :p
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2001
    Posts
    7,322
    Rep Power
    33
    i am getting deja vu here => web-based FTP client
    - Andreas Koepke

    Koepke Photography

  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Location
    Amman, Jordan
    Posts
    6
    Rep Power
    0
    hi,
    Do anybody knows how can I create a new file on an existing opened FTP account.

    I am building an FTP client using PHP but there is no FTP function for creating a new file on the server.

    If there is no way, can I create a new file using the file functions on my FTP server?

    thx.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    164
    Rep Power
    12
    could you not use a system function instead of a php function,
    such as 'touch'

    Im no expert - thats just a thought
  8. #5
  9. Second highest poster :p
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2001
    Posts
    7,322
    Rep Power
    33
    you could use touch or just one line to open the file would be enough to create it. either way.
    - Andreas Koepke

    Koepke Photography


IMN logo majestic logo threadwatch logo seochat tools logo