Opening a SQLite Database : sqlite_popen « MySQL Database « PHP






Opening a SQLite Database

 
<?php

     $err_msg = "";
     $db_conn = sqlite_popen("/tmp/mydatabase", 0666, &$err_msg);
     if(!$db_conn) {
          trigger_error("Could not open database: (Reason: $err_msg)");
     }
     /* Perform database operations */
?>
  
  








Related examples in the same category