View Full Version : Need help with script

03-26-2004, 08:32 PM
I need to make a script which fetches a webpage (all the html on it).

If for example the page is like this:

<html><body><font face=arial>blah blah blah </font><a href="whatever">whatever</a><p><font face=verdana size=1>etc etc</font></p>

I only need the script to cut off everything before the '<p>' tag and echo the rest of the html after it.

I have no idea how ?

03-27-2004, 07:29 PM
use file_get_contents() to read the file into a string. then use RegEx to extract the HTML you need.