Using PHPlib with mod_php (Apache module)
Installing PHPLIB onto a web server that has PHP as a module
(actually Apache) mainly differs in where you can set up runtime
settings for PHP itself. PHP can be compiled with a wealth of
parameters (see the PHP section in phpinfo()), most of which can
get overridden by the php3.ini file. The location of this
file is shows as part of the output of phpinfo().
Example: If below we talk about setting in your
php3.ini the configuration
mod_php users may alternatively configure in their
httpd.conf the following:
;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;
magic_quotes_gpc = Off ; magic quotes for incoming GET/POST/Cookie data
magic_quotes_runtime = Off; magic quotes for runtime-generated data,
; e.g. data from SQL, from exec(), etc.
magic_quotes_sybase = Off ; Use Sybase-style magic quotes
; (escape ' with '' instead of \')
track_vars = On ; enable $PHP_GET_VARS[], $PHP_POST_VARS[]
; and $PHP_COOKIE_VARS[] arrays
; automatically add files before or after any PHP 3.0 document
auto_prepend_file = (add path to prepend.php3 here)
auto_append_file =
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
include_path = (add path to the directory with all .inc files)
All of this comes very handy when you have multiple virtual
hosts (e.g. you are an ISP). In this case you can comfortably
place the php3 directives in the <VirtualHost> block
or in an .htaccess file in the client directory.