I have been killing myself over this problem and I can't find a solution. Basically I am running my PHP script locally on my home computer, I am currently on the topic of databases, but I keep getting this error:
"Fatal error: Call to undefined function dba_open() in C:\Program Files\EasyPHP 2.0b1\www\test.php on line 10"
The PHP code is as follows:
$dbh = dba_open("./data/products", "c", "gdbm") or die ("Could not open the database in question");
dba_insert ("Sonic Screwdriver", 23.20, $dbh);
dba_insert ("Tricorder", 55.55, $dbh);
dba_insert ("ORAC AI", 2200.50, $dbh);
dba_insert ("HAL 2000", 4500.00, $dbh);
dba_close($dbh);
Basically i am going through a book, so supposidly the above PHP code is correct, well why wont it run on my local computer??
Can somebody please help, I know asking for PHP help in this forum is a long shot but there must be somebody out there!