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

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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 */
?>