Results 1 to 4 of 4

Thread: PHP and FTP ?

  1. #1
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default PHP and FTP ?

    I need to use FTP in a project I am working on, but I don't know a thing about using FTP. What I need to know is:

    • How do I set it up if I am hosting the website myself?
    • What's my username/password (or how do I get one)?
    • Will it work for offline testing?
    • Anything else you think I should know before starting this adventure. . .


    Don't worry about the PHP code for now, but I have a feeling I will need help with that later.

    Thanks in advance,
    Jas
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Quote Originally Posted by Jas View Post
    How do I set it up if I am hosting the website myself?
    You would need to install an FTP server on your hosting server. If you are running a Windows based system, I recommend Filezilla FTP Server (look it up in google, but I know it is free). If on linux or other OS, look into ProFTP or FreeFTPD (not sure or these sites either).

    What's my username/password (or how do I get one)?
    Once you set up the FTP server in the last step, you can set up your username, password, and home directory for that user.

    Will it work for offline testing?
    Usually, FTP is for transferring files from your local machine to a remote machine. You could probably run local tests, but not sure why you would really want to do so.

    Anything else you think I should know before starting this adventure. . .
    That's pretty much it. If you need help with setting up the server software, look at the documentation for that server. Other than that, enjoy.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    vsftpd is fairly ubiquitous if you're looking to set up a server. However, I think you were saying you wanted to access one from PHP? In that case, the PHP FTP documentation will help you.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    THANK YOU!!!! IOU one!

    -Jas
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •