Page 1 of 1

Read the source of YouTube

Posted: Tue Dec 16, 2008 9:49 pm
by zerandib
How to read the the source of http://www.youtube.com
This is NOT working!

<?php
$fh = fopen("http://www.youtube.com/", "r");

while(!feof($fh))
{
$output = htmlspecialchars(fgets($fh, 1024));
echo ("$output<br />");
}

fclose($fh);
?>

Re: Read the source of YouTube

Posted: Tue Dec 16, 2008 9:51 pm
by John Cartwright
Duplicate. Locked.

And what the heck? I'm already helping you in the other thread..