473,385 Members | 1,185 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,385 software developers and data experts.

New PHP Releases and PDO SQLite

I'm new to getting in touch with other PHP users/PHP team, so please excuse
me if this post is at all inappropriate or in the wrong place. In the
current release of PHP (5.1.4) and in the CVS for PHP5.1.* and 5.2.* the
SQLite source version only stands at 3.2.8, while the actual realease is now
at 3.3.6. What I was wondering is whether or not this could be updated, as
there have been numerous bug fixes in the SQLite source in the past 6 months
(one which I am being affected by in PHP but not the latest command line
executable for windows by SQLite for example). Normally I wouldn't go so far
as to fix a single bug in my code, but it is an annoying one (its not an
error, or bad data - simply a matter of taking a long time to execute a
simple SQL statement due to a efficiency bug with GROUP BY). Doesn't sound
like much of an issue does it? My main reason for requesting is that it
appears to be a simple task to place the updated source in the tree. I come
to this conclusion from the dates of files currently in the tree. Most are
over 6 months old, and didn't need changing with the last update -
therefore - hopefully, not many files would need changing to upgrade it once
again - therefore - not too much bother?
Now I realise this could be be a very naive view on this, so I wont mind if
someone says 'pfff, not gonna happen just for you'.
I would compile my own php_pdo_sqlite.dll if only I knew how, or even my own
full version of PHP for this minor update.
I am developing platform independent code on Windows XPSP2 with Apache2 and
PHP5.1.4 and SQLite3 databases. I do have Visual Studio 2003 (.Net) and
could possibly compile the source with documentation, I just can't seem to
find much information on it. Is it possible to compile my own
php_pdo_sqlite.dll by myself with an updated version of the SQLite library
or would this be a difficult task.

Well, I decided to stop rambling, so, thanks in advance to anyone with any
information and anyone who took the time to read my post.

--- Dave


Jul 5 '06 #1
1 2548

David Fowler wrote:
I'm new to getting in touch with other PHP users/PHP team, so please excuse
me if this post is at all inappropriate or in the wrong place. In the
current release of PHP (5.1.4) and in the CVS for PHP5.1.* and 5.2.* the
SQLite source version only stands at 3.2.8, while the actual realease is now
at 3.3.6. What I was wondering is whether or not this could be updated, as
there have been numerous bug fixes in the SQLite source in the past 6 months
(one which I am being affected by in PHP but not the latest command line
executable for windows by SQLite for example). Normally I wouldn't go so far
as to fix a single bug in my code, but it is an annoying one (its not an
error, or bad data - simply a matter of taking a long time to execute a
simple SQL statement due to a efficiency bug with GROUP BY). Doesn't sound
like much of an issue does it? My main reason for requesting is that it
appears to be a simple task to place the updated source in the tree. I come
to this conclusion from the dates of files currently in the tree. Most are
over 6 months old, and didn't need changing with the last update -
therefore - hopefully, not many files would need changing to upgrade it once
again - therefore - not too much bother?
Now I realise this could be be a very naive view on this, so I wont mind if
someone says 'pfff, not gonna happen just for you'.
I would compile my own php_pdo_sqlite.dll if only I knew how, or even my own
full version of PHP for this minor update.
I am developing platform independent code on Windows XPSP2 with Apache2 and
PHP5.1.4 and SQLite3 databases. I do have Visual Studio 2003 (.Net) and
could possibly compile the source with documentation, I just can't seem to
find much information on it. Is it possible to compile my own
php_pdo_sqlite.dll by myself with an updated version of the SQLite library
or would this be a difficult task.

Well, I decided to stop rambling, so, thanks in advance to anyone with any
information and anyone who took the time to read my post.

--- Dave

(Personal note, please break up large paragraphs, it makes text hard to
read with a hangover)

I've not looked at the PDO source code or how they do their 'thing,'
but:
I'm going to guess PDO simply uses the version of SQLite that PHP
supports. If you upgrade your sqlite source, PHP will probably use it
to build the PDO stuff. Just set the appropriate flags in the
configure line.

Alternatively, it would also seem, according to the docs, that PDO and
SQLite are loaded seperately as extensions, so you should just be able
to download the latest SQLite dll and replace the existing one. This
sounds easier to do, and lets you upgrade in the future.

SQLite is also installable using pear, which might have a newer version
available. Try that too, then you don't have to go fiddling with
manually overwriting or installing anything.

It is possible to compile your own DLL, usually the project settings
come with all the options set, but sometimes it can be a severe pain.
For help about that, you might want to try another group.

The reason the sqlite source is older is probably because they know it
works. In the next major release of PHP you'll probalby see them using
a later one.

Jul 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
4
by: Jim Carlock | last post by:
I added the following lines to PHP.INI. extension=php_pdo.dll extension=php_pdo_sqlite.dll extension=php_sqlite.dll specifically in that order. I noticed the extensions getting loaded are...
14
by: 7stud | last post by:
Does sqlite come in a mac version? Thanks.
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 =...
9
by: Gilles Ganault | last post by:
Hello I was looking for a lighter web server than Apache, and installed Lighttpd on CentOS through yum. It works fine, but I now need to use SQLite from a PHP script. I seem to understand that...
8
by: Gilles Ganault | last post by:
Hello I need to compile PHP5 with SQLite statically and without PDO. I don't need DB-independence, so it's fine using sqlite_*() functions instead of PDO. 1. I've downloaded, compiled, and...
3
by: Daniel Fetchinson | last post by:
Does Python 2.5.2's embedded SQLite support full text searching? Sqlite itself is not distributed with python. Only a python db api compliant wrapper is part of the python stdlib and as such it...
0
by: Joe Goldthwaite | last post by:
Thanks Guilherme. That helped. I guess I was thinking that pysqlite would automatically come with some version of sqlite. The fact that it doesn't is what was causing me to get the strange...
20
by: timotoole | last post by:
Hi all, On a (sun) webserver that I use, there is python 2.5.1 installed. I'd like to use sqlite3 with this, however sqlite3 is not installed on the webserver. If I were able to compile sqlite...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.