Dbase_open open DBF file, only 2 lines of code

Source: Internet
Author: User
Tags open dbf file
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 "
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.