[Sussex] php problem
Alex Harrington
alex at longhill.org.uk
Tue Sep 29 21:16:42 UTC 2009
> If I include the preg_match, I get an error 255. Comment it out and it
> runs ok.
I don't know how to solve that specifically, but I was looking at the PHP documentation for preg_match and it says that using strpos or strstr will be significantly faster.
It seems that you just want to find any line that starts with Subject - so perhaps use:
if (strpos($line,"Subject") === 0) {
$subject=$line;
}
instead?
Alex
More information about the Sussex
mailing list