I am new to this forum and have just started using EasyPHP instead of XAMP (which is a bit bloated compared with EasyPHP). I am also in the process of trying to learn PHP using a Zend online course. The following code scrap is from my other PC running XAMP (where it works fine).
I am getting the following error message:
Fatal error: Call to undefined function sqlite_open() in C:\Program Files\EasyPHP5.3.0\www\dev\109-05.php on line 37
Line 37 is the "// open database file"
I have tried to place the SQLite database in a number of different locations (changing the path setting as appropriate):
C:\Program Files\EasyPHP5.3.0\www\dev\library.db (which is the same directory as the PHP script
C:\Program Files\EasyPHP5.3.0\www\data\library.db
C:\Program Files\EasyPHP5.3.0\data\library.db
None seem to make any difference, I still get the same error message.
Can anyone please advise me:
1. Does SQLite run with EasyPHP (it looks like it is installed); and
2. what the correct file path for a SQLite database file out to be.
Regards,
Peter
----- CODE SNIPPET -----
// set path of database file
$db = $_SERVER['DOCUMENT_ROOT']."/../data/library.db";
// open database file
$handle = sqlite_open($db) or die("Could not open database");