I often find myself doing quick checks like this:
if (!eregi(\'.php\', $fileName)) { $filename .= \'.php\'; }
But as eregi() was deprec
If you go for the "fake" eregi, you shold trigger a notice inside the fake function: trigger_error('Some code still use eregi',E_USER_NOTICE); This way you will easily catch the forgotten eregi calls and can replace them.