Bit of PHP needed...

Jackster

New Member
I need a bit of php to show a video in the frame.

I need a ad on the top and the video underneath.

I need it in a video embed code.

But i don't want to put the embed code each time.

I also want it to be like www.domain.com/video.php?id=1

And the line could be ?1=http://videourl.com/vid1.mkv

Ill also need to set the titel...


Any one could do this for me?

Thanks
 
Last edited:

ErikFox

New Member
All you have to do is create the frames as you do in html and place the ad code.

What is the embedded player that you are using? All you have to do is pass the video url or the id. What is the embed code you are using?
 

logoarena

New Member
if you have few videos you can just do like this:

$urls=array(1=>'http://videourl.com/vid1.mkv', 2=>'http://videourl.com/vid2.mkv');

then to recall the url variable:
$id=(int)$_GET['id'];
$url=$urls[$id];

or, if the suffix is always the same and only the number is changing, you don't need to set an array, so you can do like this:

$id=(int)$_GET['id'];
$url='http://videourl.com/vid'.$id.'.mkv';

anyway if you have a lot of videos you can store your video links in a database and recall with the id... the database solution is pretty long to explain here
 
Top