I can not get a page to load from the following php program. When I load the page in the browser all I get is a blank white page. I also looked in the /var/log/apache2/error.log file and found this line -> [Sun Aug 25 21:36:37 2013] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function sqlite_open() in /var/www/ET/process.php on line 9

Here's my code.

<?php
echo "<html>";
echo "<body>";
// get variable from html form
//$fName = $_POST['fname'];
//$lName = $_POST['lname'];
//$address = $_POST['email'];

$db = sqlite_open('./et', 0666, "$error_message");

//if($db == sqlite_open('./et'))
//{
//$result = sqlite_query($db, 'select * from customers');
//echo $result;
//}
echo "hello world!";
echo "</body>";
echo "</html>";
?>

Call to undefined function sqlite_open() in /var/www/ET/process.php on line 9

SQLite is not enabled. Check your PHP.INI

Thread closed. Continued here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.