diff options
author | Aaron Bannert <aaron@php.net> | 2002-04-18 22:10:57 +0000 |
---|---|---|
committer | Aaron Bannert <aaron@php.net> | 2002-04-18 22:10:57 +0000 |
commit | 3aa8a9b62b5cc7389ff08f9da0b15aede95a3114 (patch) | |
tree | f146941b4e131d071516f9b85948d8ef1a820275 /sapi/apache2filter/php_apache.h | |
parent | ab54cc1e1be518c87613cdc10d4a13e02962a935 (diff) | |
download | php-git-3aa8a9b62b5cc7389ff08f9da0b15aede95a3114.tar.gz |
This patch implements a new Apache2 directive called PHPINIDir that
allows the specification of the php.ini directory from within the Apache
configuration. If left unset, the default is to defer to the hard-coded
php paths. When set, the supplied path is made relative to Apache's
internal ServerRoot setting.
Example:
PHPINIDir "conf"
# PHP will now look in the ServerRoot/conf directory for the php.ini file
Diffstat (limited to 'sapi/apache2filter/php_apache.h')
-rw-r--r-- | sapi/apache2filter/php_apache.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sapi/apache2filter/php_apache.h b/sapi/apache2filter/php_apache.h index 8cac0a0e37..e96fd404f1 100644 --- a/sapi/apache2filter/php_apache.h +++ b/sapi/apache2filter/php_apache.h @@ -19,6 +19,17 @@ #ifndef PHP_APACHE_H #define PHP_APACHE_H +#include "httpd.h" +#include "http_config.h" +#include "http_core.h" + +/* Declare this so we can get to it from outside the sapi_apache2.c file */ +extern module AP_MODULE_DECLARE_DATA php4_module; + +/* A way to specify the location of the php.ini dir in an apache directive */ +extern char *apache2_php_ini_path_override; + +/* The server_context used by PHP */ typedef struct php_struct { int state; request_rec *r; |