Graxeon Posted December 30, 2008 Share Posted December 30, 2008 1. Can someone check to see if i setup the script correctly? I'm trying to grab whatever is in "path=" under "_video" from this page: http://www.sqweasel.com/flv_player/data/playerConfigEmbed/140.xml 2. I'm trying to add the text ".xml" after the input. I don't know how to make this: http://www.sqweasel.com/flv_player/data/playerConfigEmbed/INPUTHERE.xml Here's the script: <?php $allowed_url = array("140", //test start "224"); //get the url from the url - lol $passed_url = $_GET['url']; foreach ($allowed_url as $allowed) { if(stristr($allowed, $passed_url) !== false) { $url='http://www.sqweasel.com/flv_player/data/playerConfigEmbed/'.$_GET['url']; $sxml = simplexml_load_file($url); list($node) = $sxml->xpath('/playerConfig/_video'); header('Location: '.$node['url']); exit; } } header("Location: http://www.google.com/"); ?> Link to comment https://forums.phpfreaks.com/topic/138906-check-my-setup-please-also-a-question/ Share on other sites More sharing options...
Graxeon Posted December 30, 2008 Author Share Posted December 30, 2008 Oh btw, I do have this piece of code which probably has something to do with it... .str_replace("url=", "http://video.", $_SERVER['QUERY_STRING']).".com/"); Link to comment https://forums.phpfreaks.com/topic/138906-check-my-setup-please-also-a-question/#findComment-726407 Share on other sites More sharing options...
Graxeon Posted December 30, 2008 Author Share Posted December 30, 2008 Anyone, please? I really don't know where else to ask Link to comment https://forums.phpfreaks.com/topic/138906-check-my-setup-please-also-a-question/#findComment-726587 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.