open foxpro database

From: Date: Wed, 02 May 2001 10:19:36 +0000
Subject: open foxpro database
Groups: php.db php.general 
Request: Send a blank email to php-db+get-9045@lists.php.net to get a copy of this message
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. Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com

« previous php.db (#9045) next »