In article
<[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Boaz Yahav) wrote:
> In case anyone is interested, eregi("HTTP/1.[01].302",$output) seems to
> work :)
"." == "any character" (including, but not necessarily, a period). If you
want to match a period, escape it or put it in square braces:
eregi("HTTP/1\.[01].302",$output)
-or-
eregi("HTTP/1[.][01].302",$output)
You might also want to limit what's acceptable before the status code by
changing ".302" to:
" 302" //space
-or-
"[ ]302" //space, made more obvious
-or-
"[[:space:]]302" //any whitespace character
--
CC
--
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]