|
|||
|
Hi all,
I do all my dev work on a Mac (10.6.8) which runs php 5.3.6 as opposed to 5.2.9 on crucial. This has caused a couple of minor issues in the past, but I've overcome them easily. Now, not so. I have created a simple script which utilises an SQLite3 database and have it working on my system. The main class goes something like this: Code:
class myclass extends SQLite3 {
public function __construct() {
$this->open("/path/to/sqlite3.sq3");
}
// more code here
}
Fatal error: Class 'SQLite' not found in .... Looking through the output of phpinfo() it says SQLite3 is enabled (though there is a PECL entry which according to the php manual PHP: Installation - Manual is only recommended for experimental use). I am wondering if there is a configuration option I'm missing? Or maybe it is something to do with being on a "free" hosting account and not having the ability to have SQL databases (which I could understand if I was using a MySQL server, but SQLite3 is a single file, no server needed)? Any/all solutions welcome. EDIT: It seems SQLite3 is not enabled after all as there is not an "sqlite3" entry in phpinfo() output (I'm comparing my output to crucial's output). There is a PDO driver for sqlite 3.x but this is a different thing, and works in a different way, am I correct? Given this, is it possible to add SQLite3 or is this a compile-time configuration thing? Last edited by coelmay; 14-12-2011 at 12:28 PM. Reason: added/updated/corrected information |
|
|||
|
Ross,
Quote:
Quote:
Quote:
Not to worry. I'll just have a play with MySQL and if I'm happy with the result, will consider upgrading to Business Hosting. Thanks. |
|
|||
|
I moved it to a backup, and then tried a clean install; I was running sqlite3 as my db without a problem and so something is not right. With the clean install; if I picked sqlite3, it'd act like it was about to install, but it would then just go to a blank page after I click "Complete Install". If I pick sqlite instead of sqlite3, it will install. Running a phpinfo() shows that sqlite3 support is one, and the initial install page confirms that sqlite3 is supported (or at least confirms the extension is on).
|
![]() |
| Tags |
| php, sqlite3 |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT +11. The time now is 04:30 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2









Linear Mode
