473,403 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

PHP/SQLite connector PHP5 and SQLite 3

I am trying to connect to a SQLite 3.3.6-5 database using PHP 5.1.6. I am running Apache 2 on a Linux server and I get the error message that the Class PDO was not found. phpinfo says that the php.ini file is located in /etc and I have edited it to add the following lines:

extension=php_pdo.dll
extension=php_sqlite.dll

php.ini indiates that the extension_directory is /usr/lib64/php/modules but the only entry in that directory is dbase.so. I added dbase.so to my list of extensions, restarted httpd but still get the same error.
Dec 15 '11 #1
1 2405
Dormilich
8,658 Expert Mod 8TB
.dll files are for windows only, pretty much useless in Linux. you'll need the .so modules. depending on where you get the PHP source from (php.net download, linux repository) either compile from a version including PDO or add (and recompile) the PDO extension.
Dec 15 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: joe | last post by:
I've tried a number of different things to get php 5 to use something other than the bundled sqlite 2.X. I've last tried using the following configure options ../configure...
12
by: John Salerno | last post by:
I've been looking around and reading, and I have a few more questions about SQLite in particular, as it relates to Python. 1. What is the current module to use for sqlite? sqlite3? or is that not...
0
by: dirtycow | last post by:
Hi all, I'm trying to compile PHP 5.2.1 on my Ubuntu 6.10 server. I've downloaded the source code from php.net and am running the following "configure" command on it: ../configure...
1
by: Roberto | last post by:
Which is the most advised way to reach SQLite from PHP5/Apache2? I have both pdo_sqlite and php5-sqlite3 installed (on Ubuntu Feisty, in case you were wondering). I want to use the best practice...
10
by: Luigi | last post by:
Hello all! I'm a newbie in PHP. I have written a short script that tries to update a SQLite database with the user data. It is pretty simple, something like this: <?php $sqlite =...
20
by: Rob Stevens | last post by:
Can someone tell me how to import the sqlite3.dll file into c#. I am pretty new to this, and I want to use sqlite. The problem is I don't have a clue on how to import the dll file so i can call...
3
by: kyosohma | last post by:
Hi, I am trying to use sqlite to create a local database for an application I am writing and I am getting some screwy results from it. Basically, I have a set of values in the database and I am...
2
by: Gilles Ganault | last post by:
Hello I need to access SQLite from PHP5 without recompiling PHP. Is there a way to just drop the DLL (or rather, the .so file : It's Linux) and use a special PHP function to use it? Thank you.
1
by: Harris Kosmidhs | last post by:
Hello. I started writing an application and used PDO to connect to an sqlite file.The sqlite DB was created with the Sqllite extension of firefox. Now I want to switch to CakePHP. I used the...
8
by: john6630 | last post by:
I am trying to get PDO for sqlite to work on my localhost system. I have modified the PHP5.ini file as shown below and run the following PHP script. As stated below, it reports the mssql, mysql and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.