Thanks for clicking I know nothing in PHP, but I think this is possible, and easy. I need a page which contains a Windows Media Player embedded. Let's say for example the page is called play.php. I would like the media play to play what comes after the page name in the address bar; example: ....com/play.php?=http://www.site.com/video.wmv Could anyone tell me about this, or please do this as a favour? Thanks a lot.
I don't know the exact code to embed the media player in there. But whatever that code is you should have some spot where you place the filename of the movie you want to watch. So on the previous page your link should look something like this <a href="http://www.something.com?movie=coolvideo.mpg">Cool Video</a> Code (markup): Then on the following page in your php code you should have the following //the below will get movie information, in this case 'coolvideo.mpg $movie=$_GET['movie']; PHP: then later you'll need to inject that into the spot where the movie name goes.. <embedded movie object src="<?php echo $movie; ?>"> Code (markup):
The problem is though the videos played will be remotely hosted, so I don't think I can use that. Thanks for your reply, klown
that's basically code . you can check file format with ( get_headers()) to ignore injection attacks . if we have : play.php?http://www.abc.com/movi.mpg .script working fine . but when we have : play.php?http://www.ab.com/show.mpg"><iframe src='www.new.com'> script has security hole .