WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

PHP overview

WebSphere® Message Broker provides support for the PHP scripting language.

WebSphere Message Broker provides a PHPCompute node, which is a programmable node that supports message transformation and routing by using the PHP scripting language. For example:

$output_assembly->XMLNSC->doc->item = 
$input_assembly->MRM->structure->field; 

This PHP code generates the following XML code:

<doc>
    <item>
           ... deep copy of field element from input tree
    </item>
</doc>

The PHPCompute node builds on this syntax to produce a powerful syntax for accessing WebSphere Message Broker trees.

Standard output and standard error messages from the PHP engine are written to the console log for the broker. For information about reading the console log, see Standard system logs.

z/OS platformOn z/OS®, all PHP scripts must be encoded in UTF-8 format. All string literals in PHP scripts, and all character data that is passed to scripts from the message assembly, are in UTF-8 encoding. Typically, scripts that interact with the message assembly in PHP work in the same way on z/OS as they do on other operating systems. If a script uses byte streams in PHP (such as file access), the Multibyte String functions can be used to detect the code page and convert character data as required.

UTF-8 might not be the default code page of the broker, which means that any function that requires the broker to have a UTF-8 default code page might need to be modified. For example, the asBitstream and addElementFromBitstream methods on the MbsElement object use the default code page of the broker as their default code page, rather than the code page of PHP.

The PHPCompute node provides support for Simple Network Management Protocol (SNMP). The Management Information Base (MIB) files are installed during the installation of WebSphere Message Broker, and their location is specified by the MIBDIRS environment variable.

For information about the PHP functions supported by WebSphere Message Broker, see PHP extensions.

For more information about the PHP scripting language, see the PHP: Hypertext Preprocessor web site.

Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:46:34


Concept topicConcept topic | Version 8.0.0.7 | ac69001_