Read the source of YouTube
Posted: Tue Dec 16, 2008 9:49 pm
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);
?>
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);
?>