Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Easy Date   World's Leading Outsourcing Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 04-23-2007, 11:53 PM   #1 (permalink)
Inactive
 
Join Date: 09-07-06
Posts: 25
iTrader: 0 / 0%
Latest Blog:
None

mohammed is liked by many
Play videos using php

Hello friends,

How to play videos using php, could anyone suggest me code to play the videos.

For example, I have a video "abc.mpg", i want to play it in the browser using php code.

I need help asap.

Thanks.
mohammed is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 04-24-2007, 01:43 PM   #2 (permalink)
Inactive
 
StupidScript's Avatar
 
Join Date: 09-22-06
Location: Los Angeles
Posts: 678
iTrader: 0 / 0%
Latest Blog:
None

StupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really nice
You can use PHP to place the code on your page, but the code itself must be client-side (i.e. OBJECT, EMBED) in order for the browser to play it within a page.

You can use PHP to, for example, get the name of the file to play from a database or from a form selection and then dynamically include the file name in the static code on the page.
(i.e. <parameter name="movie" value="<?=$thisMovie?>">)

The most simple way to do it is just to include a link to the MPG file. The visitor clicks the link, and the MPG opens up in their media player (WinAmp, MS Media Player, QuickTime, etc.) The link value can also be populated by PHP, similar to above.
(i.e. <a href="movies/<?=$thisMovie?>">)

There are several ways to get a movie into a page's code. Here's a link to an online code generator that you can learn from.
StupidScript is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this the right code to play videos? atomicstomp Coding Forum 8 10-20-2003 07:40 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 08:46 AM.
© Copyright 2008 V7 Inc