SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Upload and display video

    How would I go about uploading and displaying video with php?
    Thanks in advance.

  2. #2
    SitePoint Enthusiast firmaterra's Avatar
    Join Date
    Dec 2006
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    2 step process..

    from a html page have a form that the user can select the file to upload. It is then passes to your php script and handled through the $_FILES (see php.net for more info). if all is in order you move_uploaded_file to your folder of choice (again see php manual). Then unless you have unlimited bandwidth you'll need to convert these to a format that uses less bandwidth and memory e.g FLV. Mencoder, FFMPEG, etc will all do this for you.

    After that its a matter of having your users select which video to play and then embedding it <embed> or <object id> . You can look these up. ALthogether about 4/5 pages of php and html should cover the whole process. :P


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
  •