Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Error: __autoload() is deprecated, use spl_autoload_register() instead

$
0
0

I am facing a PHP error on live server. I believe it is a version issue.

The error is included below and occurs in the config.php file:-

ERROR: __autoload() is deprecated, use spl_autoload_register() instead.

Code snippet from config.php file

if (!function_exists('__autoload')) {
    function __autoload($class) {
        if (strpos($class, 'Auth_Controller') === 0) {
            @include_once( APPPATH . 'core/' . $class . EXT );
        }
        if (strpos($class, 'Rest_Controller') === 0) {
            @include_once( APPPATH . 'core/' . $class . EXT );
        }
    }
}

Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>