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

    Join Date
    Sep 2002
    Posts
    16
    Rep Power
    0

    ftp link question


    I have php and apache server. document root is /usr/local/apache/htdocs.

    There are some files in /usr/local/apache/htdocs/download which I want users to download through ftp.

    if I give this link on my webpage

    <a href="ftp://www.myserver.com/">ftp link</a>

    then should it open that folder or not ? How else can I do it ? How does Apache handles ftp server ? are there any settings for it ?

    Thanks in advance.
  2. #2
  3. Throws Rocks
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio
    Posts
    392
    Rep Power
    14
    Apache is not an FTP server. It handles HTTP requests. Files can still be transferred across HTTP (through a web browser). If you really want to set up ftp access, I would set up a very restricted user with only SSH access, and allow people to SFTP in.

    By the way, how does this relate to PHP?
    Two things have come out of Berkeley, Unix and LSD.
    It is uncertain which caused the other.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Posts
    16
    Rep Power
    0
    I am sorry about posting in the wrong forum. Can you please tell me what is SFTP? Where can I find it ? How can I use it ? and what is SSH access ?

    I'll make sure that I am posting the question in right forum from next time.

    Thanks
  6. #4
  7. Throws Rocks
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio
    Posts
    392
    Rep Power
    14
    There is a solution for all of your questions my friend. And that solution is http://google.com
    Two things have come out of Berkeley, Unix and LSD.
    It is uncertain which caused the other.
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Posts
    16
    Rep Power
    0
    Okay. Thanks-

    But one last question if you don't mind. If there is already an FTP client installed on my machine then can I use something like

    <a href="ftp://www.myserver.com/dir">download files</a>
  10. #6
  11. Throws Rocks
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio
    Posts
    392
    Rep Power
    14
    A client is used to initiate a connection to a server. If you want people to be able to initiate a connection with you, you would then need to be running a ________________ .

    Care to guess what the blank is?
    Two things have come out of Berkeley, Unix and LSD.
    It is uncertain which caused the other.

IMN logo majestic logo threadwatch logo seochat tools logo