Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: FTP with PHP

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

    Default FTP with PHP

    I hate to resurect a thread (especially one of my own) but the answer I got last time didn't help me, as it turns out. . . So:

    How do you use FTP with PHP (please don't refer me to the PHP manual, I already read it)? What I really need to know is:

    • How do I set it up if I am hosting the site myself? (Do I need to download something?)
    • What is my USERNAME/PASSWORD?
    • How do I set up the form/script?


    I really need to know the first two. The third would just make a nice bonus if you have the time. I can already do the PHP upload, if that helps you determin how much info I need, but I am clueless with PHP and google didn't help. . .

    Thanks everyone,
    --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

    If you look at the post in your other thread (with the same title) that I posted, it expalins about setting up an FTP server using Filezilla. If you need further help with that, let me know and I will be glad to help out.
    "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
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    I noticed that post but it really didn't help. How do I set it up for the server, how do I use it with php. . . .

    *and it's a different title. FTP and PHP vs. FTP with PHP. lol

    BTW, TestingSite, this is ocmpletely unrelated, but I don't want to start a new thread, so I'll just ask you: do you think it's worth the trouble to create a filter script for a forum (ie to block out certain words)? Or should my forum just be monitered?
    Last edited by Jas; 08-18-2007 at 09:17 PM.
    --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

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

    Default

    First off, what type of server; or OS, are you running to host your website. I need specifics as to help you properly. Example:

    Running Windows XP with Apache, PHP, Filezila FTP Server and hMailServer.

    That's a decent example for me to help you. Perhaps someone else may be able to help you further; but without knowing what type of system you are running, we really are at a standstill.

    Hope this helps nonetheless.
    "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

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

    Default

    Sorry! I didn't even think to mention that: the server will probably be a windows XP or Vista OS with apache/PHP and I suppose Filezilla ? I am open to whatever you suggest as long as it is compatible with windows XP and/or Vista. Do you need anything else?
    --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

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

    Default

    Ok; with Windows XP running Apache with PHP, you would want to download and install Filezilla FTP Server or FreeFTPD (whichever you prefer). After you have it installed the FTP server; and you have created a username/password, you can begin testing (beings that you are are a Windows system, PHP 4+ has FTP support enabled by default. If you run into problems, you may want to look into downloading and installing a pre-configured server suite to suit your needs. Probably NetServer would be your best bet for an easy, clean install.

    Hope this helps.

    Note: I linked to all the websites you should need.
    "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

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

    Default

    A few questions: what is hMailServer ? When I setup filezilla, it will ask me at the end of setup what my username/password will be, and then it will all work (with localhost and my future server)? What should I be doing with the PHP script to make it work with filezilla?
    --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

  8. #8
    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
    what is hMailServer?
    hMailServer is an email server. To learn more about it, go to their website.

    When I setup filezilla, it will ask me at the end of setup what my username/password will be, and then it will all work (with localhost and my future server)?
    It's been a while since I set up Filezilla, but I think after you set it up you will have to add a user yourself. The way you do this is by clicking on the "User Administration button. Then click "Add". After doing so, enter the username for the user you wish to create; then click "OK". After that, you will click on "Enable Password" and enter in a password (if you wish to do so). Then click on the link that says "Shared Folders". Click "Add", and choose the directory in which you want the user to access; then click "Ok". Finally, click "OK" at the bottom left side of the User Admin area and that's it. Test the account to make sure it works and your done.

    What should I be doing with the PHP script to make it work with filezilla?
    As for the PHP script, all you need to do is follow the FTP instructions in the PHP manual (spelling?). Be sure to look at the comments for specific scripts that pertain to this. You could also do a Google search on "FTP commands using PHP".

    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

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

    Default

    I've said it before, but your amazing! I will see if it works. (It might take a couple of days for me to actually finish creating the script and what-not-- I've been busy over the summer). Thanks for ALL of your help.
    --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

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

    Default

    the server will probably be a windows XP or Vista OS with apache/PHP and I suppose Filezilla ? I am open to whatever you suggest as long as it is compatible with windows XP and/or Vista.
    A Windows server? Yuck. Server setup tends to be a lot easier on Linux.
    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!

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
  •