Forum Moderators: coopster

Message Too Old, No Replies

Process an HTML page through PHP

Is this possible?

         

chadmg

8:09 pm on Oct 26, 2004 (gmt 0)

10+ Year Member



Is there a way to process an html page from another server through php? If not, how do services like the w3c validator work?

robho

9:18 pm on Oct 26, 2004 (gmt 0)

10+ Year Member



Yes, you just read it:


$page = file_get_contents('http://www.example.com/');

and then do whatever you want with the contents of $page (copyright permitting).