|
|
#1 |
|
Bronze Member
![]() Join Date: Jul 2010
Posts: 31
|
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
__________________
Get PREMIUM WebHosting from £0.50 > www.lolhosting.info Use cupon code :webdesign When ordering a Basi package to get it free My posts are the view from my eyes and probably not yours! Don't comment on them cos i don't read them! Last edited by Jackster; 08-26-2010 at 02:33 AM. |
|
|
|
|
|
#2 |
|
New Member
![]() Join Date: Sep 2010
Posts: 2
|
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? |
|
|
|
|
|
#3 |
|
New Member
![]() Join Date: Sep 2010
Posts: 7
|
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
__________________
Start a logo design contest at Logo Arena! Get your logo designed by top logo designers |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|