RE: [PHP] RE: [PHP-DB] open foxpro database:solved

From: Date: Thu, 03 May 2001 02:42:05 +0000
Subject: RE: [PHP] RE: [PHP-DB] open foxpro database:solved
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-9075@lists.php.net to get a copy of this message
Thank's a lot. I make the employee.dbf free table. And it's work. Regards; Benny. -----Original Message----- From: Scott Bernard [mailto:scotty@vinculandote.com] Sent: 03 Mei 2001 8:44 To: Benny; php-db@lists.php.net; php-general@lists.php.net Subject: [PHP] RE: [PHP-DB] open foxpro database Try it again, but make the employee.dbf free table, or just making it foxplus. -----Mensaje original----- De: Benny [mailto:benny@konsep.net] Enviado el: Miércoles, 02 de Mayo de 2001 07:03 a.m. Para: php-db@lists.php.net; php-general@lists.php.net Asunto: [PHP-DB] open foxpro database 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 Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#9075) next »