Hi

I'm using dbase functions in my pages, quite in the same way as they are exposed in the manual, but I get the following error message:
Fatal error: Call to undefined function: dbase_create() etc.
(if I comment that line, the message would mention dbase_open function)

The code is:

$dbname = "zappo.dbf";
$def =
array(
array("TITOLO", "C", 7),
array("NOME", "C", 14),
array("COGNOME", "C", 21),
array("ENTE", "C", 44),
array("SEDE", "C", 44),
array("INDIRIZZO", "C", 44),
array("CAP", "C", 5),
array("PROVINCIA", "C", 2),
array("COMUNE", "C", 35)
);

dbase_create($dbname, $def);

$manicodbf=dbase_open("zappo.dbf", 2);

(I suppose it is a bug in php4, and I'm considering to migrate back to php3.)

Any suggestion would be greatly appreciated, I'm new to php, so I hope it's not a bug but a stupid mistake on my part

thanks in advance

tarko

    a year later

    Hi,

    You have to configure the dbase extensions since they're not installed by default.

    Open the PHP.INI file look for the extensions directory and change it to the directory where all the DLL exstensions files are stored, then look in the same file for the dbase extension and uncomment it.

    Save the file and run the script again.

    You have to stop IIS before editing the PHP.INI file and start it again for the change to work.

    Saludos,
    Javier.

      Write a Reply...