...

View Full Version : Need help with script



Richard
03-26-2004, 07: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 ?

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum