1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
php3 for DEBIAN
----------------------
Take a look at the additional php3 modules available as debian packages
(e.g. postgresql, mysql, msql and gd, some of them in non-free or
contrib). You can use them in your scripts after a dl() command, like
dl("/usr/lib/php3/<version>/module.so") where <version> is either cgi or
apache depending on which version of php you use (the modules are
unfortunatelly not compatible) for them.
The apache and cgi versions of php3 now use different configuration files so
you can use both simulteously with correctly set up extension_dir.
If you set your extension_dir in /etc/php3/<version>/php3.ini to
/usr/lib/php3/<version> (depending on which version of php3 you use, apache
or cgi) then you might just use dl("module.so"), or even you might even
set up these modules in the LoadExtensions section of the conffile to be
always loaded.
If you want to use the cgi version of php3 with a webserver that does not
support CGI redirection, you should write scripts which the webserver
recognizes as conventional cgi and specify #!/usr/bin/php3-local as their
interpreter.
The manual is nearly complete (/usr/share/doc/php3-doc/html/manual.html), you
might take a look at http://www.php.net/php3 at the documentation resources.
The php/fi 2.0 manual is very useful for php3 too.
Gergely Madarasz <gorgo@caesar.elte.hu>, Tue, 7 Sep 1999 13:08:04 +0200
|