You are here: Re: How to make PHP support other database WITHOUT recompiling? « PHP Programming Language « IT news, forums, messages
Re: How to make PHP support other database WITHOUT recompiling?

Posted by Mladen Gogala on 04/17/06 16:20

On Mon, 17 Apr 2006 07:43:18 -0400, RC wrote:

> I think there is must a way I can edit the php.ini
> file, make php support other database beside MySQL.

Indeed you can. You must download the corresponding PECL extension,
compile it, put it in the right directory and enable it like this:

extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20050922"
extension=oci8.so

For this, you must have shared library oci8.so in the directory defined as
an extension_dir:
[root@medo ~]# ls -l /usr/local/lib/php/extensions/no-debug-non-zts-20050922/
total 272
-rwxr-xr-x 1 root root 271587 Mar 31 08:43 oci8.so

If you are running Windoze, ready-made extensions can be downloaded from
http://pecl4win.php.net. If not, you'll have to download and compile your
own. In theory, you should be able to write "pecl install <module>", but
pecl command is a buggy junk that doesn't work, so you'll have to do it
the hard way:

pecl bundle <module>
cd module
phpize
../configure
make
make install



--
http://www.mgogala.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация