call php script from CL – slow

30 pts.
Tags:
CL
i5
PHP
Qshell
Hello, i try to call a php-script on our 520.
CHGVAR     VAR(&CMM) +                                   
             VALUE('/usr/local/Zend/Core/bin/php +       
             /www/zendcore/htdocs/test.php')
QSH        CMD(&CMD) 
i try to send an email in the php script and i was wondering why it takes about 5-8 seconds to send the mail. So i tried to find out where the script is slow. For testing i have made en empty php-script. if i test this the script runs 3-4 seconds. -> the time must be lost in the communication between CL/QSH and PHP. Is there another faster way to call the php scripts ? Are there params that can speed up the communication ? Thanks so far jo

Software/Hardware used:
i5 520

Answer Wiki

Thanks. We'll let you know when a new response is added.

I would expect that <i>”communication between CL/QSH and PHP”</i> is <b>not</b> where time is lost. IMO, the more likely problem is the simple creation and destruction of the Qshell environment every time the QSH command is run. That implies creation/destruction of any environments or processes that would be initiated within Qshell.

Since a 5-8 second delay for a simple, single interactive e-mail wouldn’t be too terrible, this would seem to be more of an issue for repetitive processing, perhaps by a batch job or by an interactive invocation a a batch-style processing of a list. If that’s the case, then it seems very inappropriate to issue a QSH command for each individual e-mail. Far better would be to issue QSH only once and have the list processed within the Qshell script itself.

Even better might probably be to use a native e-mail function, e.g., the <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzair/rzairsendmime.htm”>QtmmSendMail API</a>, or a freeware utility such as <a href=”http://www.easy400.net/mmailh/intro.htm”>MMAIL</a> from EASY400.

Tom

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following