Page 1 of 1

divx player with php

Posted: Sun Jul 15, 2007 8:55 am
by tokyowalker
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi everyone..this is my first post and i would really appreciate it if someone can help me ...

here what i want to do ... i want to make a videoplayer.php where :

1) someone will click on a link from some site with this form : http://www.mydomain.com/videoplayer.php?url=1234567
2)videoplayer.php then will read the last 7 digits 1234567 to use them as a parameter after .
3)videoplayer.php have an embeded video code like this : 

[syntax="html"]<object codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" height="400" width="720" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"><param name="autoplay" value="false"><param name="src" value="http://video.stage6.com/{param}/.divx" /><param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed type="video/divx" src="http://video.stage6.com/{param}/.divx" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" autoplay="false" height="400" width="720" /></object>
where {param} will be replaced by the seven digits 1234567 ...

3) that s all .. i want videoplayer.php to resd the url and extract the last 7 digits and use them as a code to play the embeded video ...


I guess this should be easy to make but as i have 0 experience with php i really need your help ..

thank you in advance


feyd | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Sun Jul 15, 2007 9:02 am
by feyd
What have you tried? What have you searched for?

Posted: Sun Jul 15, 2007 9:56 am
by tokyowalker
thank you for editing my post fedy and sorry i did it wrong ... that was my first post and i didn t pay attention ..

the file i want to make is something similar to the one used on this website http://easy-tv.org/divxplayer.php?url= if you add the 7 digits code of a video hosted on stage6 it will play it embedded ..
an example will look like this : http://easy-tv.org/divxplayer.php?url=1413590

Posted: Sun Jul 15, 2007 11:34 am
by feyd
I realize that, but what have you tried? What have you searched for?