1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to upload video files in php

Discussion in 'PHP' started by rekha, Oct 31, 2008.

  1. rekha

    rekha New Member

    Joined:
    Jan 17, 2008
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I want to upload video files,have to store it in a mysql database and retrieve it using php.How can i do this.Anyone pls help...


    Regards
    Rekha
     
  2. pete_bisby

    pete_bisby New Member

    Joined:
    Nov 11, 2007
    Messages:
    48
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    Software Developer/Analyst, PB
    Location:
    Manchester, England
    Home Page:
    I wouldn't recommend storing any kind of files within a database, certainly video files. You have to store them as BLOBs (Binary Large OBjects), which are huge - it is an unnecessary overhead.

    Why not upload the files to a directory on the server, and store the file/folder name in the database.
     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    pete_bisby is absolutely right, storing large files, in database is not recommended at all, if you have problems in using you server filesytem, store your files in Amazon S3 (Simple Storage Service), if easy, efficient and fast!
     

Share This Page