I need to pull some strings from a file, but am having some problems. I can open the file, but I can not find the strings. I would be looking for:
<VirtualHost> and </VirtualHost>
I need to pull and parse whats between this. Thanks for the help.
eregi("<virtualhost>(.*)</virtualhost>", $string);
if it returns true.. then $Regs[0] should contain what your looking for
Andreas
Oops: $Regs[0] contains the entire string, $Regs[1] the contents of the first substring.