Re: php with modified version of sqlite

From: Date: Mon, 03 Mar 2008 16:34:01 +0000
Subject: Re: php with modified version of sqlite
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-270862@lists.php.net to get a copy of this message
On Fri, February 29, 2008 2:58 pm, Jean-Christophe Roux wrote: > Hello, > > I am running php 5.1.6 on a Centos 5.0 box (installed with yum). My > php app uses pdo_sqlite. The issue is that I am going to have to use a > special version of sqlite with some custom functions. How do I control > which version of sqlite, php is calling? Use yum to remove PHP. Compile PHP from source; No more yum. At the ./configure stage, you can use something like: --with-sqlite=/full/path/to/sqlite/dir/that/has/both/include/and/lib ./configure will "dig down" inside the directory looking for the "include" dir (headers) and "lib" dir (libraries) in order to compile in your version of sqlite. You can also use: --with-sqlite=shared,/usr/local (for an example) and then it builds the sqlite extension "shared" which means it can be upgraded independently of PHP itself, to save a few minutes' compile time if sqlite source changes... This might be good if your sqlite provider is changing it often. sqlite may be one of the extensions that can NOT be compiled as "shared" though, for all I know. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#270862) next »