[function.require-once]: failed to open stream: No such file or directory php
I get the following error when I go to http://zyz.com/abc/index.php:
Warning: require_once(C:\Inetpub\vhosts\xyz.com\httpdocs\abc\classes/mysqli.cls.inc) [function.require-once]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\xyz.com\httpdocs\abc\classes\_ClassLoader.inc on line 5
开发者_JS百科below is the class loader.inc file
<?php
function __autoload($clsname) {
$ClassDir = dirname( __FILE__ ) . "/";
require_once $ClassDir . strtolower( $clsname ) . '.cls.inc';
}
?>
You don't have mysqli
installed, but are trying to use it. Your __autoload
function tries to load it from the directory of the web application, but that's not where it would be located if it was installed. Install and configure mysqli
to fix the problem. You can check whether it is installed by writing phpinfo();
in any .php
file.
Do you have file mysqli.cls.inc at C:\Inetpub\vhosts\xyz.com\httpdocs\abc\classes folder? Check exact name
精彩评论