Hi,

iam trying to grab info from a webpage.

This snippet is the part that does the actual searching...

$site = "www.whatever.com/something.html";
$open = fopen($site, "r");
$search = fread($open, 20000);
fclose($open);
$search = ereg("$begin(.*)$end", $search, $content);

What i find strange is that the search only works on the actual text in the
html-document. It doesn´t seem to be able to use htmltags as $begin or $end.

And another question: does  the "search" of $end begins from $begin? Or does
it scan the whole document for both strings?

Regards
# Daniel Alsén    | www.mindbash.com #
# [EMAIL PROTECTED]  | +46 704 86 14 92 #
# ICQ: 63006462   |                  #


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to