[Solved]: Fatal error: Call to undefined function: strripos() in /www/busin !!!!help!!!! [Solved]: Fatal error: Call to undefined function: strripos() in /www/busin !!!!help!!!!
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: Fatal error: Call to undefined function: strripos() in /www/busin !!!!help!!!!

Started by Tjnashster, May 29, 2008, 12:54:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tjnashster

please help every time you click on a picture all you get is Fatal error: Call to undefined function: strripos() in /www/business/8821/tom/plugins/remove_modify/codebase.php on line 11

what can i do to stop this >?????

just_some_guy

Its a problem with the "remove_modify" plugin, remove it and that should stop the problem.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Tjnashster


Veronica

strripos() is a PHP 5 function only
You probably have an old version of PHP 4 installed
Upgrade to PHP 5 will remove your
Call to undefined function: strripos() in .......

Joachim Müller

Workaround as suggested in http://www.php.net/manual/en/function.strripos.php:
<?php

if(!function_exists("stripos")){
    function 
stripos(  $str$needle$offset 0  ){
        return 
strpos(  strtolower$str ), strtolower$needle ), $offset  );
    }
/* endfunction stripos */
}/* endfunction exists stripos */

if(!function_exists("strripos")){
    function 
strripos(  $haystack$needle$offset 0  ) {
        if(  !
is_string$needle )  )$needle chr(  intval$needle )  );
        if(  
$offset 0  ){
            
$temp_cut strrev(  substr$haystack0abs($offset) )  );
        }
        else{
            
$temp_cut strrev(    substr(   $haystack0max(  ( strlen($haystack) - $offset ), 0  )   )    );
        }
        if(   (  
$found stripos$temp_cutstrrev($needle) )  ) === FALSE   )return FALSE;
        
$pos = (   strlen(  $haystack  ) - (  $found $offset strlen$needle )  )   );
        return 
$pos;
    }
/* endfunction strripos */
}/* endfunction exists strripos */
?>