Read the source of YouTube

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
zerandib
Forum Newbie
Posts: 16
Joined: Tue Dec 16, 2008 12:17 am

Read the source of YouTube

Post 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);
?>
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Read the source of YouTube

Post by John Cartwright »

Duplicate. Locked.

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