Just my o.o2 cents...
Isn't this table a members od database? When you use VFP 3.0 and up, VFP
can change header of file to new format. So it's
not compatible with old dbf file. I don't remember all operations that
cause this "upgrade", but including into the
database will certainly do that.
To be sure, that your table is 100% compatible with old dbf format, open
your table in VFP, and issue
copy to olddbftable TYPE FOX2X.
This will save all records from the table in old file format.
About the linux side, make sure, that user nobody have read permissions
on that file.
Apache, thus php too, runs as user "nobody".
hth
Dezider.
"Benny K. Putera" wrote:
> I used function dbase_xxx to access foxpro database (.dbf) but it's not work.
> Here is my code :
> <?
> if (dbase_open("/home/benny/test/employee.dbf",0)) {
> for ($i=1; $i<=dbase_numrecords($open); $i++) {
> $rec = dbase_get_record($db, $i);
> $nf = dbase_numfields($db);
> for ($j=0; $j < $nf; $j++) {
> print $rec[$j]."<br>\n";
> }
> }
> }
> ?>
> Everytime I call this page there's a message :
> Warning: unable to open database /home/benny/test/employee.dbf in
>/home/benny/htdocs/foxpro.php on line 2
> I used php 4.0.4 and Visual Fox Pro 5.0.
> Before that I have mounted my foxpro dbf file to my linux in the /home/benny/test
>directory.
> Is there anything wrong?
> Anyone could help me?
>
> Regards;
>
> Benny.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]