|
|
|
| Web Hosting Guide |
Myspacetv Download Php Script Help |
Jul 11 2008, 08:21 PM
Post
#1
|
|
|
Member [ Level 1 ] 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
This post has been edited by Normano: Jul 11 2008, 08:22 PM |
|
|
|
![]() |
Replies
(1 - 6)
Jul 12 2008, 11:53 AM
Post
#2
|
|
|
Super Member Group: Members Posts: 611 Joined: 29-September 06 Member No.: 16,228 |
Use file/_get_contents and look for the applet/object.
|
|
|
|
Jul 13 2008, 07:32 PM
Post
#3
|
|
|
Member [ Level 1 ] 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:/ |
|
|
|
Jul 13 2008, 08:29 PM
Post
#4
|
|
|
Super Member Group: Members Posts: 611 Joined: 29-September 06 Member No.: 16,228 |
Yeah, but you need to make your own for myspace.
|
|
|
|
Jul 13 2008, 08:50 PM
Post
#5
|
|
|
Member [ Level 1 ] Group: [HOSTED] Posts: 36 Joined: 28-August 07 Member No.: 24,433 |
i got a script for myspace here
CODE <?php but one problem is that it only work when i use it at my localhost(computer) and not at my website $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"); } ?> 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 |
|
|
|
Jul 13 2008, 09:11 PM
Post
#6
|
|
|
Super Member 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.
|
|
|
|
Jul 13 2008, 09:49 PM
Post
#7
|
|
|
Member [ Level 1 ] 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
|
|
|
|
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
5 | Niru | 3,805 | 5th November 2009 - 08:04 AM Last post by: iG-balajee |
|||
![]() |
7 | bluefish | 2,804 | 3rd November 2009 - 09:29 PM Last post by: HannahI |
|||
![]() |
9 | luckyboy3123 | 5,279 | 29th October 2009 - 03:08 AM Last post by: iG-butter1093 |
|||
![]() |
10 | yordan | 2,225 | 27th October 2009 - 11:31 PM Last post by: HannahI |
|||
![]() |
2 | jessic | 244 | 26th October 2009 - 01:51 PM Last post by: Swisoon |
|||
![]() |
62 | Zegg90 | 19,803 | 24th October 2009 - 03:00 PM Last post by: iG-matt |
|||
![]() |
12 | avalon | 4,203 | 23rd October 2009 - 10:15 AM Last post by: iG-kkk |
|||
![]() |
2 | pbolduc | 2,767 | 3rd October 2009 - 08:20 PM Last post by: iG-Andrew |
|||
![]() |
22 | TavoxPeru | 10,417 | 2nd October 2009 - 07:53 AM Last post by: iG-Mel |
|||
![]() |
0 | Barretta | 87 | 29th September 2009 - 05:49 AM Last post by: Barretta |
|||
![]() |
4 | bobokalln | 2,214 | 24th September 2009 - 03:21 AM Last post by: iG-check |
|||
![]() |
11 | soleimanian | 4,205 | 22nd September 2009 - 12:01 PM Last post by: iG- |
|||
![]() |
7 | Eggie | 2,079 | 9th September 2009 - 02:22 AM Last post by: iG-nate |
|||
![]() |
12 | m3th | 6,637 | 29th August 2009 - 12:16 AM Last post by: dmnhunter |
|||
![]() |
3 | blueangle | 1,218 | 6th August 2009 - 09:59 AM Last post by: yordan |
|||
|
Lo-Fi Version | Time is now: 24th November 2009 - 09:38 PM |
© 2009 AstaHost: Free Web Hosting & Technical Discussion, Free Web Hosting. a member of xisto.
Powered by Invision Board. Skin: IPB Forum Skins
Expand / Collapse Navigation


Jul 11 2008, 08:21 PM






