Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> 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
toby
post Jul 12 2008, 11:53 AM
Post #2


Premium Member
Group Icon

Group: Members
Posts: 489
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


Premium Member
Group Icon

Group: Members
Posts: 489
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


Premium Member
Group Icon

Group: Members
Posts: 489
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 topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Trainable Anti-spam Filter Script(3)
  2. Php Script To Download File From Another Site(9)
  3. Need Help With A PHP - MySQL Registration Script(13)
  4. What Would Make A Good Registration Script?(4)
  5. Auto Responder Script(6)
  6. Xgrid With Php(0)
  7. Blog Script?(5)
  8. Installed A PR Checker Script - But Not Working Correctly(6)
  9. How To Delete File Using PHP Shell Script(3)
  10. Online Multiplayer Chess Script(2)
  11. Automated File Structure Creation Script(3)
  12. Authentication Script(1)
  13. Login Script(5)
  14. Please Help (php Join Script)(5)
  15. Automatic/remote Php Script Execution(9)
  1. Something Wrong With This Script?(9)
  2. Automated Product Suggestion Script(2)
  3. Run A Script When Expires A Session(6)
  4. Php Script Help(1)
  5. SQL Doesn't Connect In PHP Script(19)
  6. Warning: Mysql_result(): Supplied Argument Is Not A Valid Mysql Result Resource In ...(4)
  7. Password Recovery Script(6)
  8. Login Script(8)
  9. Free Forum Hosting Type Script Help!(2)
  10. Script Request(2)
  11. Writing And Testing My Own Login Script [solved](20)
  12. Make A Script Run Even If No User Is Online(6)
  13. Php Login Script(0)


 



- Lo-Fi Version Time is now: 8th September 2008 - 02:55 AM