View Single Post
Old 10-08-2012, 10:10 PM   PM User | #506
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,547
Thanks: 15
Thanked 131 Times in 124 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by atanas View Post
I try something interesting. I try get content of youtube page from other machine and correct function DownloadVideo($youTubeUrl) to:
$file_contents = file_get_contents("http://othersite/youtube.php?video=$youTubeUrl);
and get the content but the script don't work.

Any ideas ?
Because my script is running pattern matching that only matches the source of a YouTube.com page.

I have no idea what the source code of http://othersite/youtube.php is, but it clearly is different from the source of a regular YouTube.com video page.
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
[Related videos and tutorials are also available at my YouTube channel]
chump2877 is offline   Reply With Quote