|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-07-10 14:07 UTC] cmb@php.net
-Package: dBase related
+Package: dbase
[2016-08-05 14:39 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2016-08-05 14:39 UTC] cmb@php.net
[2016-08-14 04:22 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 05:00:01 2025 UTC |
Description: ------------ im execute my code to open the dbf file but it show me this Warning: dbase_open() [function.dbase-open]: unable to open database C:/xampp/htdocs/mpjbt/dbfFile/fpt/fptaudit.DBF in C:\xampp\htdocs\mpjbt\Utility\ConfigurationDBF.php on line 202 Could not open C:/xampp/htdocs/mpjbt/dbfFile/fpt/fptaudit.DBF for import. But, im execute another dbf file its works. Test script: --------------- function import_dbf_restday($db, $table, $dbf_file) { global $conn; if (!$dbf = dbase_open($dbf_file, 0)) { die("Could not open $dbf_file for import."); } $num_rec = dbase_numrecords($dbf); $num_fields = dbase_numfields($dbf); $fields = array(); } Expected result: ---------------- EXPECTED RESULT: No errors and the database opened. Actual result: -------------- Warning: dbase_open() [function.dbase-open]: unable to open database C:/xampp/htdocs/mpjbt/dbfFile/fpt/fptaudit.DBF in C:\xampp\htdocs\mpjbt\Utility\ConfigurationDBF.php on line 202 Could not open C:/xampp/htdocs/mpjbt/dbfFile/fpt/fptaudit.DBF for import.