Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "OHF Bridge PHP Sample Client"

(PHP Pears)
(Installation)
 
(4 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
Make sure you install the PHP engine in Apache, you may also use one of the LAMP or WAMP installations.
 
Make sure you install the PHP engine in Apache, you may also use one of the LAMP or WAMP installations.
  
===PHP Pears===
+
===Required PHP PEAR Libraries===
Note that there is a problem with this php version pear. To fix it fetch a recent [http://go-pear.org go-pear.php here], save it as C:\PHP\PEAR\go-pear.php and run again go-pear.bat.  
+
Note that there is a problem with this PHP version pear. To fix it fetch a recent [http://go-pear.org go-pear.php here], save it as C:\PHP\PEAR\go-pear.php and run again go-pear.bat.  
  
 
To install the PEARs, go the PHP installation directory and run something like:
 
To install the PEARs, go the PHP installation directory and run something like:
Line 14: Line 14:
 
* XML_Util
 
* XML_Util
 
* XML_Serializer-0.18.0
 
* XML_Serializer-0.18.0
''If a PEAR claims it needs another PEAR as prerequired, install it too.''
+
''If a PEAR claims it needs another PEAR as prerequisites, install it too.''
 +
 
 +
* Install PHP XSL support, see [http://www.sitepoint.com/article/transform-php-xslt this] site ([http://www.onlamp.com/pub/a/onlamp/2001/03/16/sablotron.html and this too]) for instructions.
 +
 
 +
* Install dBug from [http://dbug.ospinto.com/ this site]. Place the dBug.php file in your ''<your PHP install path>/pear/dBug''. I recommend turning the '''display_errors''' to ''Off''' in the php.ini since dBug sometimes create error notices.
  
 
==Installation==
 
==Installation==
Line 20: Line 24:
 
* Set the '''org.eclipse.ohf.bridge.client''' as the root directory of the Apache server
 
* Set the '''org.eclipse.ohf.bridge.client''' as the root directory of the Apache server
 
* Open the '''org.eclipse.ohf.bridge.client/conf/client_conf.php'''
 
* Open the '''org.eclipse.ohf.bridge.client/conf/client_conf.php'''
** Edit the '''OHF_SERVICE_URL''' definition to point to the [[Ohf bridge]]
+
** Edit the '''OHF_SERVICE_URL''' definition to point to the [[OHF Bridge]] Web service endpoint
 
* Done!
 
* Done!

Latest revision as of 12:56, 12 February 2007

Installation pre-requisits

Make sure you install the PHP engine in Apache, you may also use one of the LAMP or WAMP installations.

Required PHP PEAR Libraries

Note that there is a problem with this PHP version pear. To fix it fetch a recent go-pear.php here, save it as C:\PHP\PEAR\go-pear.php and run again go-pear.bat.

To install the PEARs, go the PHP installation directory and run something like:

pear install XML_Parser 

The PEARs you need are:

  • SOAP-0.9.4
  • XML_Parser
  • XML_Util
  • XML_Serializer-0.18.0

If a PEAR claims it needs another PEAR as prerequisites, install it too.

  • Install dBug from this site. Place the dBug.php file in your <your PHP install path>/pear/dBug. I recommend turning the display_errors' to Off in the php.ini since dBug sometimes create error notices.

Installation

Oh, nothing really to do here :-)

  • Set the org.eclipse.ohf.bridge.client as the root directory of the Apache server
  • Open the org.eclipse.ohf.bridge.client/conf/client_conf.php
    • Edit the OHF_SERVICE_URL definition to point to the OHF Bridge Web service endpoint
  • Done!

Back to the top