uploading large files with php

Discussion in 'PHP' started by lateuk, Mar 21, 2007.

  1. #1
    Hello,
    I want to let users upload large video files (2-20 meg), they wont be displayed on a webpage until i have checked/converted them offline. i dont need anything fancy.

    My problem is i dont know the best way to allow users to upload these files. Maybe FTP using php or something?!?

    Can anyone suggest the best way to do it safely, securely, and with a progress bar?

    I am a resonable PHP programmer.

    Thanks

    Late
     
    lateuk, Mar 21, 2007 IP
  2. Triexa

    Triexa Active Member

    Messages:
    580
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Sure, why not set up an FTP account with upload-only privledges? Their FTP client will let them know the progress.
     
    Triexa, Mar 21, 2007 IP
  3. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #3
    FTP would be best, theres not much point having someone write the php for you when it would be just as easy to use what you have, plus on a lotta shared servers, php's limit will be well below 20megs for the purpose of 1000's of ppl using the sam 2gigs of ram .....
     
    krakjoe, Mar 21, 2007 IP
  4. lateuk

    lateuk Active Member

    Messages:
    317
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #4
    The only problem with using FTP is i want it to be simple, and i would imagine quite a few people have never used FTP.

    I'm also worried about security if i try and use PHP to call ftp functions.
     
    lateuk, Mar 21, 2007 IP
  5. Houdas

    Houdas Well-Known Member

    Messages:
    158
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #5
    Maybe PHP's build-in FTP functions with some easy frontend?
     
    Houdas, Mar 21, 2007 IP
  6. lateuk

    lateuk Active Member

    Messages:
    317
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #6
    Would there be security implications though, as i guess the username and password for the FTP account could be easily gained from the script, or sniffing?
     
    lateuk, Mar 21, 2007 IP
  7. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #7
    No matter how you do it, theres a way to attack and gain entry, the only option you really have that's a viable one is as suggested, use ftp or the php ftp functions to get the job done, alternatively have people email you the said files ......
     
    krakjoe, Mar 21, 2007 IP
  8. lateuk

    lateuk Active Member

    Messages:
    317
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #8
    Yeah good point, i will use FTP but write a nice front end in PHP.

    Thanks for the help

    Late
     
    lateuk, Mar 21, 2007 IP