cvs: php4 /sapi/servlet README
| From: | Sebastian Bergmann | Date: | Sun, 28 Oct 2001 15:22:50 +0000 |
| Subject: | cvs: php4 /sapi/servlet README | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8007@lists.php.net to get a copy of this message | ||
sebastian Sun Oct 28 10:22:50 2001 EDT
Modified files:
/php4/sapi/servlet README
Log:
More work on the README.
Index: php4/sapi/servlet/README
diff -u php4/sapi/servlet/README:1.7 php4/sapi/servlet/README:1.8
--- php4/sapi/servlet/README:1.7 Sun Oct 28 04:07:36 2001
+++ php4/sapi/servlet/README Sun Oct 28 10:22:49 2001
@@ -12,11 +12,21 @@
servers which support servlets typically take great care in
pooling and reusing Java Virtual Machines (JVMs).
+ PHP may also be bridged with the Apache Cocoon XML Publishing
+ Framework. [2]
+
+ A suitably configured system will invoke the PHP binaries through
+ JNI and the output of the page will be processed through the
+ configured XML parser and placed into the pipeline for processing
+ by such filters as XSLT. This enables PHP developers to access the
+ powers of Cocoon to separate their content, style, and logic
+ without requiring them to write a single line of Java code.
+
While this code is intended to be able to run on any servlet
engine, it has only been tested on Apache's Jakarta Tomcat to
date. Bug reports, success stories and/or patches required to get
this code to run on other engines would be appreciated; please
- send them to the PHP Development Mailinglist [2].
+ send them to the PHP Development Mailinglist [3].
Note: PHP has a habit of changing the working directory. The Java
Servlet SAPI Module will eventually change it back, but while PHP
@@ -99,8 +109,14 @@
Installing PHP as a Generator into Apache's Cocoon2 Framework
- 1.)
+ 1.) Build the Java Servlet SAPI Module as described above.
+
+ 2.) Add the following line to your Cocoon configuration
+
+ <generator name="php"
+ class="org.apache.cocoon.generators.PhpGenerator"/>
--
[1] http://jakarta.apache.org/tomcat/
- [2] http://www.php.net/support.php
+ [2] http://xml.apache.org/cocoon2/
+ [3] http://www.php.net/support.php