At 11:35 28/01/2008 -0600, Darrick Hartman (lists) wrote:
>I've confirmed this behavior. For php files to work with mini_httpd,
>files ending in .php are set to execute with /usr/bin/php (which is the
>cgi version). If you want to manually call the cli version, you need to
>change the file extension to something other than .php. Then you will not
>have a problem. You could use .phpcli or leave the extension off
>entirely. Then it will obey the #!/usr/bin/php-cli argument in the script.
Damn! :-D I would never have thought of this. It works now.
>Kris and I have discussed this off list and we're not going to change the
>current behavior of php within the standard distribution. We've now
>provided a way for you to build your own package and install php-cli (as
>/usr/bin/php-cli). It's just not worth adding another 2MB in size to the
>distribution to serve the needs of the minority.
However, in trunk 1562, SQLite is broken, and I can't compile it :-/
This is what the 1562 version of php5.mk:
PHP5_SQLITE+=--with-pdo-sqlite=$(STAGING_DIR)/usr
Any call to PDO fails with this. And since the non-PDO version of SQLite
isn't included, this version isn't available either.
Unfortunately, make fails with the following too, and I can't find much on
Google on how to compile SQLite statically without PDO:
PHP5_SQLITE+=--disable-pdo --with-sqlite
PHP5_SQLITE+=--disable-pdo --with-sqlite=/usr/local/lib
PHP5_SQLITE+=--disable-pdo --with-sqlite=/usr/local/lib/libsqlite3.a
PHP5_SQLITE+=--disable-pdo --with-sqlite=/usr/local/lib/libsqlite3.la
PHP5_SQLITE+=--disable-pdo --with-sqlite=/usr/local/lib/libsqlite3.so.0.8.6
Anyone in the list knows how to build the non-PDO SQLite in PHP, ie. by
downloading the source from www.sqlite.org?
Thanks.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to [EMAIL
PROTECTED]