$filepath=__FILE__;
//echo __FILE__;
$newarray=explode("\",$filepath);
$num=count($ newarray)-1;
$filenamelen=strlen($newarray[$num]);
$totallen=strlen(__FILE__);
$subnum=$totallen-$filenamelen-5;
$tmppath=substr(__FILE__,0, $subnum);
$newpath=$tmppath."dbdb.mdb"; //データベースパス
include "../adodb/adodb.inc.php"; //adodb
$conn = ADONewConnection('access' )をロードします。 ; //accessl 接続を確立します
$conn->Pconnect("Driver={Microsoft Access Driver (*.mdb)};Dbq=$newpath");
$conn->execute("set names utf8") ;
?>