Re: [PHP] strange stripos behavior

2007-07-24 Thread Richard Lynch
Don't call htmlentities until the last possible micro-second before you echo the data to the HTML/browser. That way you can be sure the data you have is the data you think you have. On Sun, July 22, 2007 11:23 pm, Bruce Cowin wrote: > I'm using PHP 5.1 on IIS. I have an app that uses MimeDecode

[PHP] strange stripos behavior

2007-07-22 Thread Bruce Cowin
I'm using PHP 5.1 on IIS. I have an app that uses MimeDecode to load mime files and I've built an object to parse them into their various parts; i.e., $msg->Body(), $msg->Sender(), etc. I'm using stripos() to look for a string (that I know is in my test files). It works if I search in $msg->Body