ADODB database Access connection and adodb database access. ADODB database Access connection, adodb database access? Php $ filepath _ FILE __; echo _ FILE __; $ newarrayexplode (\, $ filepath); $ numcount ($ newarray)-1; $ filenamelenstrlen ($ newarr ADODB database Access connection, adodb database access
$ 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. "db \ db. mdb"; // database path
Include "../adodb. inc. php"; // load adodb
$ Conn = ADONewConnection ('access'); // Create an accessl connection
$ Conn-> Pconnect ("Driver = {Microsoft Access Driver (*. mdb)}; Dbq = $ newpath ");
$ Conn-> execute ("set names utf8 ");
?>
Http://www.bkjia.com/PHPjc/1048756.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1048756.htmlTechArticleADODB database Access connection, adodb database access? Php $ filepath =__ FILE __; // echo _ FILE __; $ newarray = explode ("\", $ filepath); $ num = count ($ newarray) -1; $ filenamelen = strlen ($ newarr...