[PHP] dbase verify

2002-10-28 Thread Plamen Slavov
Does anyone know if there is a way to tell if a given file is a valid dbase file, using PHP functions ?

Re: [PHP] dbase verify

2002-10-28 Thread Marek Kilimajer
Filetypes are usualy recognized by first 4 bytes (or so), so you need to find out what these bytes should be for dbase files Plamen Slavov wrote: Does anyone know if there is a way to tell if a given file is a valid dbase file, using PHP functions ? -- PHP General Mailing List

[PHP] PHP dBASE connectivity

2002-07-04 Thread labhras sammin
Hi I need to use PHP (ver 4 windows) to add a record to a dBase iv database. I can create, open, read and close a database but when I try to add a record I always get the following error: Warning: unexpected error in C:\php\phpstuff\addTest1.php on line 23 Here is the code [shortened] that I

[PHP] Re: [PHP-DB] PHP dBASE connectivity

2002-07-04 Thread Miles Thompson
1. Please don't cross post. 2. Which line is #23? 3. Have you tested to ensure that you have a valid handle? ($db_num) 4. Have you tried adding error code to see the result of dbase_create(), dbase_open() 5. I seem to remember reading in the docs, a long time ago (2 yr) that the dbase functions

[PHP] Re: [PHP-DB] PHP dBASE connectivity

2002-07-04 Thread labhras sammin
thanks for your help I have tested that everything works, valid handles, returned method values, etc. Line 23 is the dbase_add_record line. Do you know of anywhere there may be an example thanks Labhras Miles Thompson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] dbase

2002-05-21 Thread eoghan
anyone ther eused dbase with php. was looking for best pratices on searching... any code snippets appreciated. thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Apache+suEXEC+php+dbase

2001-05-23 Thread JUANG
hi... how do i use dbf_open() function or other dbf functions in php with apache+suexec? my php script is ? $dbfile=kasbon.dbf; $db =dbase_open($dbfile, 0); $rec = dbase_get_record($db, 2); $nf = dbase_numfields($db); for ($i=0; $i $nf; $i++) { print $rec[$i].br\n; } ? it

[PHP] dbase functions still supported?

2001-03-20 Thread Don Pro
Hi, Using PHP 4.04pl1 I am getting an error executing the dbase_create function. Th elines of code are: if (!dbase_create($export_file, $dbf_def)) echo "Error creating DBF file"; my error message is: Fatal error: Call to undefined function: dbase_create() in my_prog. php on line 59 I

[PHP] dbase function howtos/faq

2001-02-17 Thread Robert L. Yelvington
i am having some issues with dbf files...some fields are being displayed correctly, some are not. can someone direct me to a howto or faq that might address these and other dbf issues? thanx, -robt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] DBase functions

2001-01-22 Thread Piotr Duszynski
I have a problem connecting to dbase database. I use: dbase_open("filename.dbf",0) and get from PHP: Fatal error: Call to unsupported or undefined function dbase_open() in ... What's the problem? -- Piotr Duszynski

Re: [PHP] DBase functions

2001-01-22 Thread Brian Clark
Hello Piotr, (PD == "Piotr Duszynski") [EMAIL PROTECTED] writes: PD Fatal error: Call to unsupported or undefined function PD dbase_open() in ... PD What's the problem? You'll probably need to re./configure PHP with the --enable-dbase option. -Brian -- PHP General Mailing List