Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    Jun 2006
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Ftp / php upload website

    Could anyone give me some advise on this?

    I need to build a facility for a client of mine to upload files for clients of theirs to download. Originally I was planning to do this in php (I've built a number of cms involving the uploads of files)but the size of the files may be an issue (they may be large files 10mb plus).

    As well as allowing my client to upload I would also want my clients clients to upload too. I don't want to rely on everyone downloading an ftp programme.

    Basically I would like uploads to be carried out via a browser.

    What would be the best way for me to go about doing this? I know that I need to use ftp, but I could do with some help in where to start.

  • #2
    Regular Coder
    Join Date
    Sep 2005
    Posts
    394
    Thanks
    1
    Thanked 0 Times in 0 Posts
    The only facility your web browser has for file uploading is posting. You will need to edit php.ini to upload larger files. You could also look at using java to upload the files, but I can't think of any good java clients.

    ~Phil~

  • #3
    New Coder
    Join Date
    Jun 2006
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thanks for the help -

    So.... if I alter the php.ini file I can upload large files with a php cms? Do I have to worry about the browser timing out?

  • #4
    Regular Coder
    Join Date
    May 2006
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Might look at http://projects.adamsutton.co.uk/sum...k_project_id=3

    I used it for a while in the past but have since stopped due to some issues with the ftp server I'm using.

    Might also dig thru some of the links returned by http://www.google.com/search?hl=en&q...=Google+Search

  • #5
    Regular Coder
    Join Date
    Sep 2005
    Posts
    394
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I don't see how you can use php as an ftp client. Maybe i'm wrong but...

    PHP is a server side language, therefore the files must get to the server from your PC. The only way they can do that is by http post.

    Correct me if i'm wrong

    ~Phil~

  • #6
    Regular Coder
    Join Date
    Sep 2005
    Posts
    394
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks for the help -

    So.... if I alter the php.ini file I can upload large files with a php cms? Do I have to worry about the browser timing out?
    The browser won't time out. It is php that times out, and php only takes the file for processing after it has been uploaded.

    ~Phil~

  • #7
    Regular Coder
    Join Date
    May 2006
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There are built in ftp functions. http://us3.php.net/manual/en/ref.ftp.php. I primarily use the ftp functions for some php scripts I run as cron jobs. Should be able socket functions as well if you are so inclined. I've done that in the past for some basic NNTP functionality.

    The upload from the browser to the server is by posting, but you can then FTP the file to an ftp server within the script.

  • #8
    New Coder
    Join Date
    Jun 2006
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts
    ok - I've just downloaded Adam Suttons ftp php client as a zip but I can't open the read me or FAQ files. Cubsfan - is there any chance that you could give the gist of how this works?

    Do I just upload it all to my server and build a page around the php file?

    Sorry for sounding like an idiot.....

  • #9
    New Coder
    Join Date
    Jun 2006
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts
    forget that last post - got it working

  • #10
    New Coder
    Join Date
    Jun 2006
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts
    the read me and faq files would be good if they're handy. Cheers


  •  

    Posting Permissions

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