Hi there,
I have an installation of apache-1.3.22 and php 4.0.6 in DSO configuration. Now I want to compile into PHP a dbm support by adding --with-gdbm --enable-dba=shared to the configure and make php module over. Then I have tried to use dba_open but the server rejects the function with:
Fatal error: Call to undefined function: dba_open() in ...
I wonder if there are any switches needed in php.ini for dbm to be working. My code looks like
<?php
$id = dba_open ("/tmp/test.db", "n", "gdbm");
if (!$id) {
echo "dba_open failed\n";
exit;
}
dba_replace ("key", "This is an example!", $id);
if (dba_exists ("key", $id)) {
echo dba_fetch ("key", $id);
dba_delete ("key", $id);
}
dba_close ($id);
?>
TIA Arnar