I need a PHP code that will get the video file and put it into my player. So if my domain is www.domain.com then when i put www.domain.com/watch/?naruto=683-naruto-shippuden-episode-146 thwn this link will visit the http://www.narutoget.com/watch/683-naruto-shippuden-episode-146/ page and get all the text after the file= in this case the code is <script type="text/javascript"> var so = new SWFObject('http://www.narutoget.com/player/player.swf','mpl','600','450','9'); so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so.addParam('flashvars','&file=http://video.ak.facebook.com/video-ak-sf2p/v6808/0/108/102080426490228_53607.mp4&image=http://img1.ak.crunchyroll.com/i/spire3-tmb/1232ebc5c338b78ce930626a36ccee141265084434_main.jpg&autostart=false&stretching=exactfit'); so.write('player'); </script> so the PHP script will grab http://video.ak.facebook.com/video-..._main.jpg&autostart=false&stretching=exactfit all of that after the file= and then will put that in my code as in this code http://video.ak.facebook.com/video-..._main.jpg&autostart=false&stretching=exactfit in my file= I don't know if this is possible in PHP or not Thanks