Help: Dbase_open open dbf file, only 2 lines of code ~
Note: Extension=php_dbase.dll is turned on by default
The code is as follows:
PHP Code
An error message appears:
Warning:dbase_open () [Function.dbase-open]: Unable to open database test.dbf in F:\web\AppServ\www\test\dbf.php on line 3
I tried many paths with the same warning: (Path is correct)
$file _dbf = ' test.dbf ';
$file _dbf = '/test.dbf ';
$file _dbf =./test.dbf ';
$file _dbf = ' http://localhost/test/test.dbf ';
$file _dbf = ' F:\web\AppServ\www\test\test.dbf ';
$file _dbf = ' f:/web/appserv/www/test/test.dbf ';
Excuse me, what is the reason? How should it be resolved? Thank you ~
------Solution--------------------
With ODBC
VFP (. DBC,. dbf)
Standard connection:
"Provider=vfpoledb;data Source=c:\databasepath\mydatabase.dbc;"
Or
"Provider=vfpoledb.1;data source=d:\temp; Password= ""; Collating Sequence=machine "