"Fatal error: Call to undefined function: stripos()" ใน Joomla! 1.5.7 เมื่อใช้ PHP 4

เซียน Joomla คงรู้อยู่แล้ว แต่ส่วนตัวเพิ่งเจอปัญหานี้ เพราะปกติจะใช้ PHP 5

วิธีแก้ง่ายๆก็คือสร้าง function ที่หาไม่เจอซะ

Add this to the end of /libraries/joomla/utilities/compat/php50x.php

if (!function_exists( 'stripos' )) {
    function stripos( $haystack, $needle, $offset = 0 ) {
        return strpos( strtolower( $haystack ), strtolower( $needle ), $offset );
    }
}

Reference:

http://docs.joomla.org/Category:Version_1.5.7_FAQ

Related posts:

  1. Get next value from Oracle Sequence with Spring
  2. Expression Language (EL) for JSP
  3. CMS Comparison
  4. Unable to create favorite: Unspecified error ใน IE7 และ Vista
  5. NetBeans IDE 6.5 Now Available!

Tags:

Leave a Reply