Dbase_open open the dbf file. there are only two lines of code ~ Note: the code for enabling extension = php_dbase.dll by default is as follows: PHPcode & lt ;? Php $ file_dbf = 'Test. dbf'; $ db = dbase_open ($ file_dbf, 0 );? & Gt; help: dbase_open open the dbf file, only two lines of code ~
Note: extension = php_dbase.dll is enabled by default.
The code is as follows:
PHP code
Error message:
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: (the path is correct)
$ File_dbf = 'Test. dbf ';
$ File_dbf = '/test. dbf ';
$ File_dbf =./test. dbf ';
$ File_dbf = 'http: // localhost/test. dbf ';
$ File_dbf = 'F: \ web \ AppServ \ www \ test. dbf ';
$ File_dbf = 'F:/web/AppServ/www/test. dbf ';
What is the reason? What should we do? Thank you ~
------ Solution --------------------
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"