Normano 0 Report post Posted July 11, 2008 (edited) I was trying to make a php script that can view myspace videos with jw flv player and wont to know how to do so if i put in "https://myspace.com/browser; it show the video "http://forums.xisto.com/no_longer_exists/(its the flv video file from myspacetv), I cant see the similarity with the links please help, thanks for viewing this topic Edited July 11, 2008 by Normano (see edit history) Share this post Link to post Share on other sites
toby 0 Report post Posted July 12, 2008 Use file/_get_contents and look for the applet/object. Share this post Link to post Share on other sites
Normano 0 Report post Posted July 13, 2008 I found this script for veoh but dont understand all-.- <?php//Use veoh_filegrabber.php?video_url=http://http://www.veoh.com/watch/v1288822HBz3r9De$video_url = (isset($_GET["video_url"])) ? strval($_GET["video_url"]) : "http://http://www.veoh.com/watch/v1288822HBz3r9De getFlv($video_url){ preg_match('/http:\/\/veoh.com;, $video_url, $match); $details_url = 'http://forums.xisto.com/no_longer_exists/; . $match[1] . '/details'; if ($details = file("$details_url")) { foreach($details as $value) { // fullPreviewHashPath="http://content.veoh.com/flash/p/1288822/77c44b0448a3602f79d059c8e91e556ebf9e1b13.flv?ct=bf1913ed8788db2c804b5961e62ad111906735f5ca8e489c" if(preg_match('/fullPreviewHashPath=\"(.*?)\"/', $value, $match)) { $url = $match[1]; } } header('Location: ' . $url); }}?>But its for veoh not for myspacetv and they using .htaccess hotlinking portection so i dont think i can use it:/ Share this post Link to post Share on other sites
toby 0 Report post Posted July 13, 2008 Yeah, but you need to make your own for myspace. Share this post Link to post Share on other sites
Normano 0 Report post Posted July 13, 2008 (edited) i got a script for myspace here <?php$url='http://mediaservices.myspace.com/services/rss.ashx?type=video&mediaID='.$_GET['video'];;if ($details = file("$url")){foreach($details as $value){if(preg_match('/url=\"(.*?)\"/', $value, $match)){$myspace = $match[1];}}header("Location: $myspace");}?>but one problem is that it only work when i use it at my localhost(computer) and not at my website do i need php setting fopen?edit:do Xisto allow fopen and .htaccess? Edited July 13, 2008 by Normano (see edit history) Share this post Link to post Share on other sites
toby 0 Report post Posted July 13, 2008 They do. I don't know much php, but that doesn't look right. A var isn't a string, so you don't need "". The foreach is going through the pages, of which there is one. And it'll make the browser go to the flv, it might be neater to provide a link, as it would be downloaded. Share this post Link to post Share on other sites
Normano 0 Report post Posted July 13, 2008 when i go to "example.php?video=38105626" i get the flv file from the video with 38105626 as id, it was that i was searching for, thanks for all help, if u had not said "file/_get_content" i never search for it and found this, hope u understand my bad english :S Share this post Link to post Share on other sites