We recently upgraded a program running under ZendCore to the new Zend Server 8.5.5. Our box iSeries 7.1.
The RPGLE program calls a PHP script that calls an UPS API and validats addresses. We are using this UNIX :
On ZendCore is ran fast but now that we switched to Zend Server 8.5.5 it's taking on average about 7 seconds to return the results. Calling the same PHP script from a browser it returns the results right away. We add curl_getinfo($ch)' to see the details of the cURL request and they look the same. It just appears it's the initial interaction between the RPGLE & PHP where we're seeing this add time. As far as the PHP script we're using STDIN.
Any thoughts on why we'd see this added time?
The RPGLE program calls a PHP script that calls an UPS API and validats addresses. We are using this UNIX :
Code:
Fphppipe UF F 1000 SPECIAL PGMNAME('UNIXCMD')
F PLIST(UNIXPARM) USROPN
[COLOR=#000000][FONT=Arial]cmd = 'PATH=$PATH:/usr/local/zendsvr6/bin && +
iconv -f 37 -t 819 | +
php-cli /www/zendsvr6/htdocs/CORE/UPS/xmlTest4.PHP';[/FONT][/COLOR]
On ZendCore is ran fast but now that we switched to Zend Server 8.5.5 it's taking on average about 7 seconds to return the results. Calling the same PHP script from a browser it returns the results right away. We add curl_getinfo($ch)' to see the details of the cURL request and they look the same. It just appears it's the initial interaction between the RPGLE & PHP where we're seeing this add time. As far as the PHP script we're using STDIN.
PHP Code:
//define STDIN
if(!defined( "STDIN" ) ){
define( "STDIN", fopen( 'php://stdin', 'r' ));
}
//start standinput
$input = trim(fgets(STDIN));
//explode data on unique separator
$get_data = explode('!', $input);


Comment