Why php cannot connect to access & lt; in a VM ;? Php & nbsp; include ('adodb5/adodb. inc. php '); & nbsp; $ db = & amp; ADONewConnection ('access'); & nbsp; $ Why php cannot connect to access in the ds virtual host
Include ('adodb5/adodb. inc. php ');
$ Db = & ADONewConnection ('access ');
$ Dsn = "Driver = {Microsoft Access Driver (*. mdb)}; Dbq = ". realpath ("aa/bb. mdb "). "; Uid =; Pwd = ;";
$ Db-> Connect ($ dsn );
$ Rs = $ db-> Execute ('select * from question ');
Print"
";
Print_r ($ rs-> GetRows ());
Print"
";
?>
There is no problem in the local environment. if it is inherited to the space, 500 is reported and an internal server error occurs .. Puzzled... The space supports access.
------ Solution --------------------
$ Db-> debug = true;
------ Solution --------------------
Enable error_reporting (E_ALL) and try to see if there is any error ....