You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bridges-commits@portals.apache.org by ta...@apache.org on 2006/12/20 20:39:01 UTC
svn commit: r489181 - in /portals/bridges/trunk/php/xdocs: demo.xml
getting-started.xml navigation.xml portlets.xml
Author: taylor
Date: Wed Dec 20 11:39:01 2006
New Revision: 489181
URL: http://svn.apache.org/viewvc?view=rev&rev=489181
Log:
some very basic PHP docs
Added:
portals/bridges/trunk/php/xdocs/demo.xml
portals/bridges/trunk/php/xdocs/getting-started.xml
portals/bridges/trunk/php/xdocs/portlets.xml
Modified:
portals/bridges/trunk/php/xdocs/navigation.xml
Added: portals/bridges/trunk/php/xdocs/demo.xml
URL: http://svn.apache.org/viewvc/portals/bridges/trunk/php/xdocs/demo.xml?view=auto&rev=489181
==============================================================================
--- portals/bridges/trunk/php/xdocs/demo.xml (added)
+++ portals/bridges/trunk/php/xdocs/demo.xml Wed Dec 20 11:39:01 2006
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<document>
+ <properties>
+ <title>PHP Bridge Demo</title>
+ <authors>
+ <person name="Roger Ruttimann" email="rogerrut@apache.org"/>
+ </authors>
+ </properties>
+ <body>
+ <section name="Setting up the PHP Demo">
+<p>
+The php demo uses a backed database (MySQL) that simulates
+a simple machine database.
+</p>
+<p>
+the php file in hosts/conf/config.php defines the database and
+the connection parameter that the application will use. Change
+it to your needs.
+</p>
+<p>
+Create a database (I used hosts) and populate it with the script
+found in sql/php-demo.sql
+</p>
+<p>
+The php-demo portlet is configured to use the following start page:
+hosts/index.php
+</p>
+<p>
+That's it!
+Questions/problems: jetspeed-user@portals.apache.org
+</p>
+</section>
+</body>
+</document>
Added: portals/bridges/trunk/php/xdocs/getting-started.xml
URL: http://svn.apache.org/viewvc/portals/bridges/trunk/php/xdocs/getting-started.xml?view=auto&rev=489181
==============================================================================
--- portals/bridges/trunk/php/xdocs/getting-started.xml (added)
+++ portals/bridges/trunk/php/xdocs/getting-started.xml Wed Dec 20 11:39:01 2006
@@ -0,0 +1,100 @@
+<?xml version="1.0"?>
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<document>
+ <properties>
+ <title>PHP Bridge Getting Started</title>
+ <authors>
+ <person name="Roger Ruttimann" email="rogerrut@apache.org"/>
+ </authors>
+ </properties>
+ <body>
+ <section name="Getting Started">
+<TABLE WIDTH='100%' BORDER='1' BORDERCOLOR="#000000" CELLPADDING='4' CELLSPACING='0' FRAME='BELOW' RULES='GROUPS' STYLE="page-break-before: always">
+<COLGROUP>
+ <COL WIDTH='74*'/>
+ <COL WIDTH='88*'/>
+</COLGROUP>
+<COLGROUP>
+ <COL WIDTH='94*'/>
+</COLGROUP>
+<THEAD>
+ <TR>
+ <TH COLSPAN='3' WIDTH='100%' VALIGN='TOP'>
+ <P>The following document describes how to install and configure
+ your php-Applications</P>
+ </TH>
+ </TR>
+</THEAD>
+<TBODY>
+ <TR VALIGN='TOP'>
+ <TD COLSPAN='2' WIDTH='63%'>
+ <P><U><B>System requirements</B></U></P>
+ </TD>
+ <TD WIDTH='37%'>
+ <P><U><B>Resources</B></U></P>
+ </TD>
+ </TR>
+ <TR VALIGN='TOP'>
+ <TD COLSPAN='2' WIDTH='63%'>
+ <P><FONT SIZE='2'>The PHP library needs to be in the path of the
+ servlet container so that it can get invoked from the portlet.
+ The library is platform specific. Download the library from the
+ PHP site or from the links on the left.</FONT></P>
+ </TD>
+ <TD ROWSPAN='4' WIDTH='37%'>
+ <UL>
+ <LI><P><FONT SIZE='2'>Linux: </FONT><A HREF="http://www.itgroundwork.com/resources/downloads/libphp4.so"><FONT SIZE='2'>libphp4.so</FONT></A></P></LI>
+ <LI><P><FONT SIZE='2'>Windows: </FONT><A HREF="http://www.itgroundwork.com/resources/downloads/php4ts.dll"><FONT SIZE='2'>php4ts.dll</FONT></A>
+ <FONT SIZE='2'>& </FONT><A HREF="http://www.itgroundwork.com/resources/downloads/phpsrvlt.dll"><FONT SIZE='2'>phpsrvlt.dll</FONT></A></P></LI>
+ <LI><P><FONT SIZE='2'>Servlet interface between PHP libraries and
+ portlets. The package is automatically downloaded to the
+ maven/repository/itgroundwork/jars directory during the build.<A HREF="http://www.itgroundwork.com/resources/downloads/phpportlet.jar">phportlet.jar</A></FONT></P></LI>
+ </UL>
+ </TD>
+ </TR>
+</TBODY>
+<TBODY>
+ <TR>
+ <TD COLSPAN='2' WIDTH='63%' VALIGN='TOP'>
+ <P><FONT SIZE='3'><U><B>Setup</B></U></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN='TOP'>
+ <TD WIDTH='29%'>
+ <P><FONT SIZE='2'>Linux</FONT></P>
+ </TD>
+ <TD WIDTH='34%'>
+ <P><FONT SIZE='2'>Windows</FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN='TOP'>
+ <TD WIDTH='29%'>
+ <P><FONT SIZE='2'>Download libphp4.so and add the directory
+ containing the library to the environment var <B>LD_LIBRARY_PATH</B>.</FONT></P>
+ <P><BR/>
+ </P>
+ </TD>
+ <TD WIDTH='34%'>
+ <P><FONT SIZE='2'>Download php4ts.dll and phpsrvlt.dll and add the
+ directory containing the libraries to the <B>PATH.</B></FONT></P>
+ </TD>
+ </TR>
+</TBODY>
+</TABLE>
+</section>
+</body>
+</document>
Modified: portals/bridges/trunk/php/xdocs/navigation.xml
URL: http://svn.apache.org/viewvc/portals/bridges/trunk/php/xdocs/navigation.xml?view=diff&rev=489181&r1=489180&r2=489181
==============================================================================
--- portals/bridges/trunk/php/xdocs/navigation.xml (original)
+++ portals/bridges/trunk/php/xdocs/navigation.xml Wed Dec 20 11:39:01 2006
@@ -23,6 +23,10 @@
<item name="Bridges Home" href="../../index.html"/>
<item name="PDF Documentation" href="portals-bridges-php.pdf" img="../../images/pdf.gif" />
</links>
-
+ <menu name="Portals Bridges">
+ <item name="Getting Started" href="getting-started.html"/>
+ <item name="PHP Demo Application" href="demo.html"/>
+ <item name="Configuring Portlets" href="portlets.html"/>
+ </menu>
</body>
</project>
Added: portals/bridges/trunk/php/xdocs/portlets.xml
URL: http://svn.apache.org/viewvc/portals/bridges/trunk/php/xdocs/portlets.xml?view=auto&rev=489181
==============================================================================
--- portals/bridges/trunk/php/xdocs/portlets.xml (added)
+++ portals/bridges/trunk/php/xdocs/portlets.xml Wed Dec 20 11:39:01 2006
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<document>
+ <properties>
+ <title>PHP Bridge Demo</title>
+ <authors>
+ <person name="Roger Ruttimann" email="rogerrut@apache.org"/>
+ </authors>
+ </properties>
+ <body>
+ <section name="Configuring Portlets">
+<p>
+To configure a PHP application into your portlet definition, define an init param
+to hold the PHP start page. For example:
+</p>
+<source><![CDATA[
+ <init-param>
+ <name>StartPage</name>
+ <value>hosts/index.php</value>
+ </init-param>
+]]></source>
+</section>
+</body>
+</document>
---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-commits-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-commits-help@portals.apache.org