thetaphiSun Jun 1 17:15:52 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/sapi/nsapinsapi-readme.txt nsapi.c
Log:
MFH: Update of README for newer servers; apache-similar functions
nsapi_request_headers and nsapi_response_headers with apache_* aliases; hide
authorization-header in save mode.
Index: php4/sapi/nsapi/nsapi-readme.txt
diff -u php4/sapi/nsapi/nsapi-readme.txt:1.3.8.2
php4/sapi/nsapi/nsapi-readme.txt:1.3.8.3
--- php4/sapi/nsapi/nsapi-readme.txt:1.3.8.2Thu May 29 08:29:50 2003
+++ php4/sapi/nsapi/nsapi-readme.txtSun Jun 1 17:15:52 2003
@@ -1,9 +1,9 @@
-Configuration of your Netscape or iPlanet Web Server for PHP4
+Configuration of your Netscape/SunONE/iPlanet Web Server for PHP4
-
These instructions are targetted at Netscape Enterprise Web Server and
-SUN/Netscape Alliance iPlanet Web Server. On other web servers your
-milage may vary.
+SUN/Netscape Alliance iPlanet Web Server/SunONE Webserver.
+On other web servers your milage may vary.
Firstly you may need to add some paths to the LD_LIBRARY_PATH
environment for Netscape to find all the shared libs. This is best done
@@ -13,29 +13,31 @@
path-to-netscape-server/https-servername/start
-Netscape config files are located in:
+Netscape/iPlanet/SunONE config files are located in:
-path-to-netscape-server/https-servername/config
+path-to-server/https-servername/config
-Add the following line to mime.types:
+Add the following line to mime.types (you can do that by the administration server):
type=magnus-internal/x-httpd-php exts=php
-Add the following to obj.conf (for iPlanet/SunONE Web Server 6.0 and above however,
you need to make the specified changes to the Init function
-in the server-id/config/magnus.conf file, and not the server-id/config/obj.conf file):
+Place the following two lines after mime.types init in
+path-to-server/https-servername/config/obj.conf (for servers 6) or
+for iPlanet/SunONE Web Server 6.0 and above however at the end of the
+path-to-server/https-servername/config/magnus.conf file:
-shlib will vary depending on your OS:
+Init fn=load-modules funcs=php4_init,php4_execute,php4_auth_trans
shlib=/path/to/phplibrary
+Init fn=php4_init errorString=Failed to initialize PHP!
[php_ini=/path/to/php.ini]
- Unix: path-to-netscape-server/bin/libphp4.so.
- Windows: c:\path\to\PHP4\nsapiPHP4.dll
+The shlib will vary depending on your OS:
+ Unix: path-to-server/bin/libphp4.so.
+ Windows: c:/path/to/PHP4/nsapiPHP4.dll
-Note! Place following two lines after mime.types init ([] means optional):
-Init fn=load-modules funcs=php4_init,php4_close,php4_execute,php4_auth_trans
shlib=/php4/nsapiPHP4.dll
-Init fn=php4_init errorString=Failed to initialize PHP!
[php_ini=/path/to/php.ini]
+In obj.conf (for virtual server classes [SunONE 6.0] in their vserver.obj.conf):
Object name=default
.
@@ -45,16 +47,26 @@
# all 'AddLog' lines
# You can modify some entries in php.ini request specific by adding it to the
Service
# directive, e.g. doc_root=/path
+# For boolean ini-keys please use 0/1 as value, NOT On,Off,... (this will not
work
+# correctly), e.g. zlib.output_compression=1 instead of
zlib.output_compression=On
Service fn=php4_execute type=magnus-internal/x-httpd-php [inikey=value ...]
.
.
+.
/Object
+This is only needed if you want to configure a directory that only consists of
+PHP scripts (same like a cgi-bin directory):
+
Object name=x-httpd-php
ObjectType fn=force-type type=magnus-internal/x-httpd-php
-Service fn=php4_execute
-/Object
+Service fn=php4_execute [inikey=value ...]
+/Object
+
+After that you can configure a directory in the Administration server and assign it
+the style x-httpd-php. All files in it will get executed as PHP. This is nice to
+hide PHP usage by renaming files to .html
Authentication configuration
Index: php4/sapi/nsapi/nsapi.c
diff -u php4/sapi/nsapi/nsapi.c:1.28.2.13 php4/sapi/nsapi/nsapi.c:1.28.2.14
--- php4/sapi/nsapi/nsapi.c:1.28.2.13 Sat May 31 11:32:38 2003
+++ php4/sapi/nsapi/nsapi.c Sun Jun 1 17:15:52 2003
@@ -17,7 +17,7 @@
+--+
*/
-/* $Id: nsapi.c,v 1.28.2.13 2003/05/31 15:32:38 thetaphi Exp $ */
+/* $Id: nsapi.c,v 1.28.2.14 2003/06/01 21:15:52 thetaphi Exp $ */
/*
* PHP includes
@@ -161,6 +161,8 @@
PHP_MINFO_FUNCTION(nsapi);
PHP_FUNCTION(virtual);
+PHP_FUNCTION(nsapi_request_headers);
+PHP_FUNCTION(nsapi_response_headers);
ZEND_BEGIN_MODULE_GLOBALS(nsapi)
long read_timeout;
@@ -180,8 +182,13 @@
* Every user visible function must have an entry in nsapi_functions[].
*/
function_entry nsapi_functions[] = {
- PHP_FE(virtual, NULL) /* Make subrequest */
- {NULL, NULL, NULL}