originally got this from a comment in the php.net manual:
if (!function_exists("stripos")) {
function stripos($str,$needle) {
return strpos(strtolower($str),strtolower($needle));
}
}
simple yet elegant way to add stripos(). and you can put in in your code and it will work on php4 and php5 servers both since it checks if it exists.