HOME       >>       Programming

Myspacetv Download Php Script Help


Normano

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


toby

Use file/_get_contents and look for the applet/object.


Normano

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:/

toby

Yeah, but you need to make your own for myspace.


Normano

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?

toby

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.


Normano

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



VIEW DESKTOP VERSION REGISTERGET FREE HOSTING

Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.