[TYPO3] Using my_inventory extension when php version < 5
Jason Steiner
mojojuju at gmail.com
Thu Jun 1 05:39:10 CEST 2006
I found the extension, my_inventory, in the repository today and it
seemed pretty useful. I installed it even though I didn't have any
immediate need for it.
One problem I encountered though, upon using the extension on my server
which has a PHP version < 5, I received an error saying that the
function, stripos is undefined. It's not available in versions of PHP
less than 5.
So searching, I found the solution posted here:
http://www.php.net/manual/en/function.stripos.php#63370
Just copy the following code and put it in the file
class.tx_myinventory_pi1.php and it will work just fine
function stripos($str,$needle) {
return strpos(strtolower($str),strtolower($needle));
}
I just pasted the above code right above the call to the stripos function.
More information about the TYPO3-english
mailing list