虚拟主机里为什么php连不了access
<?php
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 "<pre>";
print_r($rs->GetRows());
print "</pre>";
?>
在本地没问题,遗传到空间上,就报500,服务器内部错误。。不解。。。空间支持access的啊
------解决方案--------------------$db ->debug = true;
------解决方案--------------------开启error_reporting(E_ALL)试试,看看有没错误....