php screen scrape

Soldato
Joined
24 Nov 2002
Posts
16,378
Location
38.744281°N 104.846806°W
I've been using a few different solutions and scripts I've wrote and acquired but I want something really simple to go to a page foo.html and store the contents from <foo1> to <foo2> as a variable so I can echo it.

Did that make sense?
 
marc2003 said:
this works? :p

Code:
<?php
$foo = file_get_contents("http://forums.overclockers.co.uk");
echo $foo;
?>
:p

Say I only wanted the line under General Hardware?

i.e.
"General computer hardware discussion. Please use one of the forums below for more specific issues."
 
Back
Top Bottom