#44582 [Opn->Fbk]: Problems to open big DBF
ID: 44582
Updated by: jani@php.net
Reported By: eriveltoms at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: dBase related
Operating System: Windows XP
PHP Version: 5.2.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
Previous Comments:
------------------------------------------------------------------------
[2008-03-31 14:51:43] eriveltoms at gmail dot com
Description:
------------
I have a big DBF file (version 3) to open, with 152Mb and 611224 lines.
When I use dbase_open command, I receive a Warning, and don´t have
access to file. I have 7 cols:
PROCESSO - STRING
R - STRING
DATA - DATE
HORA - STRING
ORIGEM - STRING
DESTINO - STRING
OBS - STRING
Reproduce code:
---------------
$db = dbase_open('temp/anda.dbf', 0);
if ($db) {
$column_info = dbase_get_header_info($db);
foreach($column_info as $cols){
echo $cols["name"]."<br>";
}
}
Expected result:
----------------
name_col1
name_col2
name_col3
....
name_coln
Actual result:
--------------
warning dbase_open() [function.dbase-open]: unable to open database
temp/anda.dbf in E:\Inetpub\wwwroot\areaspublicas\importdbf.php on line
24
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44582&edit=1
Thread (2 messages)