Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7622885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:34:01+00:00 2026-05-31T04:34:01+00:00

The following code should display a message but shows me nothing (neither on the

  • 0

The following code should display a message but shows me nothing (neither on the screen, nor in the source code). Any idea why this may be?

<?php
   try
   {   
      //create or open the database
      $database = new SQLiteDatabase('myDatabase.sqlite', 0666, $error);
      echo 'that works';
   }   
   catch(Exception $e) 
   {   
      die('that doesnt: '.$error);
   }

I’m using:

  • Ubuntu 11.10
  • PHP 5.3.6-13ubuntu3.6 with Suhosin-Patch (cli) (built: Feb 11 2012
    02:17:16)

phpinfo() shows me the following:

  • …
  • Additional .ini files parsed: …
    /etc/php5/apache2/conf.d/pdo_sqlite.ini,
    /etc/php5/apache2/conf.d/sqlite.ini, …
  • PDO drivers mysql, sqlite
  • SQLite Library 3.7.7
  • …

SQLite was installed that way:

sudo apt-get install php5-sqlite
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:34:03+00:00Added an answer on May 31, 2026 at 4:34 am

    SQLiteDatabase is not a valid class name, at least not in this extension.

    You’re looking for Sqlite3:

    $db = new Sqlite3('myDatabase.sqlite');
    

    Since the class is undefined, it’s provoking a fatal error, and you probably don’t see anything because of either your error_reporting level or display_errors setting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following code should display the id out of the JSON-object, which I got
I have the following code require 'test_helper' class ApplicationControllerTest < ActionController::TestCase test should display
I have the following code which should make drawFrame be called every frame but
The following code should show a certain track in iTunes: NSString* iTunesPath = [[NSWorkspace
The following code should pop up an alert box whenever I select a file
The following code should exhibit intended functionality: <head> <style> a:active { color:teal; } a:hover
I know that the following code should show and hide a tiny circular progress
I am trying to draw on a html5 canvas and the following code should
How to print multiply flowdocumets in a batch? Following code should print different documents
I have the following code which should put programs startable in Bash. if [

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.