Does anyone know if there is a way to tell if a given file is a valid dbase file,
using PHP functions ?
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
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
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
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
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
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
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
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]
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
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
11 matches
Mail list logo