Welcome Guest ( Log In | Register )




                Web Hosting Guide

Myspacetv Download Php Script Help
Normano
post Jul 11 2008, 08:21 PM
Post #1


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 36
Joined: 28-August 07
Member No.: 24,433


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 "http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=38105626" it show the video "http://cache01-videos02.myspacecdn.com/11/vid_e382054c036835500bacfef1ebb5157e.flv(its the flv video file from myspacetv), I cant see the similarity with the links please help, thanks for viewing this topic smile.gif

This post has been edited by Normano: Jul 11 2008, 08:22 PM
Go to the top of the page
 
+Quote Post
 
New Topic
Replies (1 - 6)
toby
post Jul 12 2008, 11:53 AM
Post #2


Super Member
Group Icon

Group: Members
Posts: 611
Joined: 29-September 06
Member No.: 16,228


Use file/_get_contents and look for the applet/object.
Go to the top of the page
 
+Quote Post
Normano
post Jul 13 2008, 07:32 PM
Post #3


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 36
Joined: 28-August 07
Member No.: 24,433


I found this script for veoh but dont understand all-.-
CODE
<?php

//Use veoh_filegrabber.php?video_url=http://www.veoh.com/videos/v1288822HBz3r9De

$video_url = (isset($_GET["video_url"])) ? strval($_GET["video_url"]) : "http://www.veoh.com/videos/v1288822HBz3r9De";

getFlv($video_url);


function getFlv($video_url)
{
  preg_match('/http:\/\/www.veoh.com\/videos\/(.*)/', $video_url, $match);
  $details_url = 'http://www.veoh.com/rest/video/' . $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:/
Go to the top of the page
 
+Quote Post
toby
post Jul 13 2008, 08:29 PM
Post #4


Super Member
Group Icon

Group: Members
Posts: 611
Joined: 29-September 06
Member No.: 16,228


Yeah, but you need to make your own for myspace.
Go to the top of the page
 
+Quote Post
Normano
post Jul 13 2008, 08:50 PM
Post #5


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 36
Joined: 28-August 07
Member No.: 24,433


i got a script for myspace here
CODE
<?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 sad.gif
do i need php setting fopen?

edit:do astahost allow fopen and .htaccess?

This post has been edited by Normano: Jul 13 2008, 09:01 PM
Go to the top of the page
 
+Quote Post
toby
post Jul 13 2008, 09:11 PM
Post #6


Super Member
Group Icon

Group: Members
Posts: 611
Joined: 29-September 06
Member No.: 16,228


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.
Go to the top of the page
 
+Quote Post
Normano
post Jul 13 2008, 09:49 PM
Post #7


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 36
Joined: 28-August 07
Member No.: 24,433


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
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts 5 Niru 3,805 5th November 2009 - 08:04 AM
Last post by: iG-balajee
No New Posts  
4 PHP
7 bluefish 2,804 3rd November 2009 - 09:29 PM
Last post by: HannahI
No New Posts   9 luckyboy3123 5,279 29th October 2009 - 03:08 AM
Last post by: iG-butter1093
No New Posts   10 yordan 2,225 27th October 2009 - 11:31 PM
Last post by: HannahI
No New Posts   2 jessic 244 26th October 2009 - 01:51 PM
Last post by: Swisoon
No new   62 Zegg90 19,803 24th October 2009 - 03:00 PM
Last post by: iG-matt
No New Posts   12 avalon 4,203 23rd October 2009 - 10:15 AM
Last post by: iG-kkk
No New Posts   2 pbolduc 2,767 3rd October 2009 - 08:20 PM
Last post by: iG-Andrew
No new   22 TavoxPeru 10,417 2nd October 2009 - 07:53 AM
Last post by: iG-Mel
No New Posts   0 Barretta 87 29th September 2009 - 05:49 AM
Last post by: Barretta
No New Posts   4 bobokalln 2,214 24th September 2009 - 03:21 AM
Last post by: iG-check
No New Posts   11 soleimanian 4,205 22nd September 2009 - 12:01 PM
Last post by: iG-
No New Posts   7 Eggie 2,079 9th September 2009 - 02:22 AM
Last post by: iG-nate
No New Posts   12 m3th 6,637 29th August 2009 - 12:16 AM
Last post by: dmnhunter
No New Posts   3 blueangle 1,218 6th August 2009 - 09:59 AM
Last post by: yordan


Web Hosting Powered by ComputingHost.com.