how upload 2gb or 3gb video file via PHP

Discussion in 'PHP' started by ronny10, Jun 21, 2009.

  1. #1
    any one help me how i have upload 2gb or 3gb file via PHP.

    i need urgent

    Thanks
    Ronny
     
    ronny10, Jun 21, 2009 IP
  2. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #2
    It's going to take a very long time but it is possible. There are settings in your php.ini file that you can tinker with to allow your scripts to utilize more memory. Namely the section entitled "resource limits", and the values in "upload_max_filesize" and "post_max_size". If you don't have access to your php.ini, try using the function ini_set().
     
    Louis11, Jun 21, 2009 IP
  3. ronny10

    ronny10 Well-Known Member

    Messages:
    185
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Thanks for information.
    But i want ajax script or javauplaoder script. if you know about that then give me.

    if i want to upload 1gb file how much time take to upload on server.

    Thanks
    Ronny
     
    ronny10, Jun 22, 2009 IP
  4. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #4
    :rolleyes:

    The AJAX uploader will need some backend to interact with as it is essentially Javascript (hence Asynchronous Javascript and XML . . . or AJAX).

    Basically you could setup your form, enable it to use some non-obtrusive AJAX script to upload, set the limits in your php.ini accordingly and have at it. If i'm not mistaken, the AJAX will have little affect or restrictions uploading the data as it is client side. What you need to worry about are server side restrictions (i.e. Timeouts, and limits on uploads in your php/server configuration).

    I couldn't tell you. It's going to depend on the uploaders connection and the speed of your server. In all honesty, I would prepare to wait a while, it's probably going to take a long time :p Just hope your server can handle the persistent connection, otherwise it might go down.
     
    Louis11, Jun 22, 2009 IP
  5. nirajkum

    nirajkum Active Member

    Messages:
    815
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #5
    It would be better if you break the files in MBs before uploading it on the server . To upload large file you will need to change php.ini file ...
     
    nirajkum, Jun 22, 2009 IP
  6. ronny10

    ronny10 Well-Known Member

    Messages:
    185
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #6

    Thanks Louis.

    If you have any recommend script then give me URL.

    Thanks
    Ronny
     
    ronny10, Jun 22, 2009 IP
  7. ronny10

    ronny10 Well-Known Member

    Messages:
    185
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #7

    Ok thanks nirajkam

    can you give me any video player. where video run one by one without refresh page

    Thanks
    Ronny
     
    ronny10, Jun 22, 2009 IP
  8. amber.long83

    amber.long83 Active Member

    Messages:
    144
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    78
    #8
    you can try with jswplayer. this will allow paying of playlist but it required .flv file
     
    amber.long83, Jun 22, 2009 IP
  9. octalsystems

    octalsystems Well-Known Member

    Messages:
    352
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #9
    use uber uploader it is best
     
    octalsystems, Jun 24, 2009 IP
  10. ronny10

    ronny10 Well-Known Member

    Messages:
    185
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #10
    Thanks. But i want to run .vob and .flv and .mob and .mpeg.

    can you tell me on which player all these above extensions.

    Thanks
    Ronny
     
    ronny10, Jun 25, 2009 IP
  11. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Why do you not use an FTP program to upload the video to your server or do you want users to be able to upload to your server?

    I think you can code where if somebody was to upload a ZIP file it automatically unpacks it but I wouldn't know how.

    Also you would be better using RAR or ZIP to chop the video up into parts first as suggested because connection might terminate etc..
     
    wd_2k6, Jun 26, 2009 IP
  12. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #12
    If you want an upload site script try galaxy scripts
     
    Bohra, Jun 26, 2009 IP
  13. dweebsonduty

    dweebsonduty Active Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    Digital Goods:
    1
    #13
    I use folwplayer, it is open source and very customizeable.
     
    dweebsonduty, Jun 27, 2009 IP
  14. enhu

    enhu Well-Known Member

    Messages:
    1,180
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    125
    #14
    why dont you compress it? 2 or 3 gb is a very large file.
     
    enhu, Jun 27, 2009 IP
  15. ronny10

    ronny10 Well-Known Member

    Messages:
    185
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #15
    Thanks for suggestion.

    You says via FTP upload script i will upload 2gb to 3 gb video files.

    is any way connection not terminate or disconnect in uploading process.
     
    ronny10, Jun 28, 2009 IP