473,761 Members | 5,848 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2578

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
2487
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 out until Python 2.5? 2. What's the difference between sqlite and pysqlite? Do you need both, just one, or is one an older version of the same thing? 3. What's the difference between the command line program called sqlite3
4
8027
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 alphabetally listed, so I'm thinking that the order of the load doesn't matter.
14
2978
by: 7stud | last post by:
Does sqlite come in a mac version? Thanks.
10
7562
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 = sqlite_open("mytest.db", 0666, $sqlite_error);
9
7095
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 it can either be access directly, or through the PDO interface. Can you confirm that the RPM that I used will only allow me to work through PDO, and not the SQLite library directly, and which is more recommended?
8
3416
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 installed sqlite.org/sqlite-3.5.4.tar.gz, and... 2. used "--with-sqlite --disable-pdo", but it fails.
3
275
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 is completely independent of the sqlite build. In other words, if your sqlite build supports full text searching you can use it through the python sqlite wrapper (that is part of the stdlib) and if it doesn't then not. This is true for any sqlite...
0
2573
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 results. I downloaded the Windows version of the SQLite3.dll. I didn't know where to put it so I first put it in its own directory and tried to register it. That didn't work so I just moved it to the pysqlite directory in site-packages. That did...
20
3971
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 using a sun machine (I normally use linux machines) and place this in my lunix home account would I be able to use python and sqlite? Any thoughts? I know its a bit of a stretch ...
0
9522
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9336
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9765
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7327
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6603
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3866
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3446
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.