At 08:53 PM 12/25/01 -0500, jjt wrote:
>Why does this error not show up every time?

It will show up every time PHP attempts to call the (incorrect) function.  But the 
functions won't be called every time.

For example, due to short-circuit evaluation, if the string is "B" or "P", the error 
will never happen.

Also, if your if statement isn't always reached, then the error will not happen.  
Finally, not all users will report the error when they get it.  But you can deal with 
that by looking at your PHP error log file.

I believe there is a way to call PHP from the command line and do a "syntax check" on 
a given file.  But I have never tried it and I have no idea if it really works.  Check 
the manual.

- Ken
[EMAIL PROTECTED]

> >> if (strtoupper(substr($xmbrcode,11,1)) != "B" &&
> >>     strtoupper(substr($xmbrcode,11,1)) != "P" &&
> >>     srtoupper(substr($xmbrcode,11,1)) != "H" &&
> >>     srtoupper(substr($xmbrcode,11,1)) != "O").... {


-- 
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