This: othersite.com <- source: <head> ...... </head><body>... <script type="text/javascript"> var so = new SWFObject('../../mediaplayer/mediaplayer.swf','mpl','730','20','9'); so.addParam('allowfullscreen','true'); so.addParam('flashvars','height=20&width=730&file=downloadMusic%3Fkey%3D4478395867%26time%3D1266261032&volume=80&type=flv'); so.write('player'); </script></body> How to get red code with file_get_contents and &preg_match&? Thanks.
if (preg_match('/file=(.*?)\'/', file_get_contents('http://whatever'), $matches)) $red_code = $matches[1]; PHP:
$page = file_get_contents('some_url.com/something_else');' Then something like this. preg_match('/file=(.*)\'\)/',$page,$urls); print_r($urls); PHP: