Thanks for your speedy response. Yes, the content will vary slightly. Mostly the values I will be extracting.
It would be ideal if I could say something like
START AFTER <title>
STOP BEFORE </title>
and have the value in between returned to me "Hello" in above case. So that if the rest of the code changes slightly changes on the page (say there is a dynamic banner), it would still work.
// need an proxy?:
//$snoopy->proxy_host = "my.proxy.host";
//$snoopy->proxy_port = "8080";
// set browser and referer:
$snoopy->agent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";
$snoopy->referer = "http://www.jonasjohn.de/";
// set some cookies:
$snoopy->cookies["SessionID"] = '238472834723489';
$snoopy->cookies["favoriteColor"] = "blue";
// set an raw-header:
$snoopy->rawheaders["Pragma"] = "no-cache";
// set some internal variables:
$snoopy->maxredirs = 2;
$snoopy->offsiteok = false;
$snoopy->expandlinks = false;
// set username and password (optional)
//$snoopy->user = "joe";
//$snoopy->pass = "bloe";
// fetch the text of the website www.google.com:
if($snoopy->fetch("http://www.Google.com")){
// other methods: fetch, fetchform, fetchlinks, submittext and submitlinks