Search found 668 matches

by aseiden
Fri Jun 10, 2016 2:56 am
Forum: Zend Server for IBM i
Topic: Slow PHP performance gengeneral
Replies: 4
Views: 4164

Re: Slow PHP performance gengeneral

When you use PHP-CLI (command line PHP), you're starting PHP and all its extensions from scratch. The extensions loaded by PHP.INI are what takes the time. Disable the extensions you don't need. That's the answer. Use a custom PHP.INI file if you like. Regular web-based FastCGI PHP is pre-started an...
by aseiden
Fri Jun 10, 2016 2:51 am
Forum: Zend Server for IBM i
Topic: errnoile 3401 when connecting to database
Replies: 2
Views: 1930

Re: errnoile 3401 when connecting to database

Hi, the IPC means the InternalKey you used when connecting to the toolkit (e.g. /tmp/alan1). If you use stateless mode instead, the problem will probably go away. $conn->setOptions(array('stateless'=>true)); but if you're intentionally using an InternalKey instead, what are you setting it to? Possib...
by aseiden
Fri Jun 10, 2016 2:47 am
Forum: Zend Server for IBM i
Topic: Toolkit simplexml_load_string parser error UTF-8
Replies: 8
Views: 7124

Re: Toolkit simplexml_load_string parser error UTF-8

Hi, Richard, Could you create a debug.log file and post it here? Set debug=true in your toolkit.ini, then run your application with the offending character. The log will be created as /usr/local/zendsvr6/var/log/debug.log or a similar name. I'm curious to learn whether the problem is sending the cha...
by aseiden
Tue Feb 09, 2016 10:52 pm
Forum: New Toolkit
Topic: PHP or Toolkit blocking application
Replies: 7
Views: 6333

Re: PHP or Toolkit blocking application

Stateless tells the toolkit to use existing DB2 jobs (QSQSRVR). Simplest approach. Stateful tells the toolkit to use separate jobs (named XTOOLKIT by default). These need to be managed somewhat. InternalKey provides a unique identifier for the jobs. For your situation, stateless will perform well. A...
by aseiden
Tue Feb 09, 2016 3:44 pm
Forum: New Toolkit
Topic: PHP or Toolkit blocking application
Replies: 7
Views: 6333

Re: PHP or Toolkit blocking application

Excellent, Michael. It's the right approach to use stateless mode. You can streamline your code by moving the stateless element to setOptions(): $this->conn->setOptions(array( 'dataStructureIntegrity' => true, 'arrayIntegrity' => true, 'stateless' => true )); and then remove setToolkitServiceOptions...
by aseiden
Tue Feb 09, 2016 3:52 am
Forum: New Toolkit
Topic: PHP or Toolkit blocking application
Replies: 7
Views: 6333

Re: PHP or Toolkit blocking application

You didn't show any code, but are you using a single "stateful" toolkit job (the same InternalKey value every time) to serve all requests? That could certainly slow things down. Let me know. It's important to use multiple jobs, either through stateless mode (easiest) or multiple stateful jobs. (I se...
by aseiden
Tue Nov 24, 2015 4:32 pm
Forum: New Toolkit
Topic: Random problem with the new Toolkit / XMLSERVICE
Replies: 8
Views: 16123

Re: Random problem with the new Toolkit / XMLSERVICE

Installing a newer version of XMLSERVICE corrects this problem. Recently I was able to eliminate the error by upgrading XMLSERVICE from 1.7.5 to 1.9.1.

--Alan
by aseiden
Fri May 29, 2015 4:00 am
Forum: Zend Server for IBM i
Topic: GetSPLF failing to perform the CPYSPLF function
Replies: 24
Views: 11143

Re: GetSPLF failing to perform the CPYSPLF function

To be clear, you authenticated to the toolkit as PGMR9301, right? (QTMHHTTP won't matter)
by aseiden
Fri May 29, 2015 3:48 am
Forum: New Toolkit
Topic: PgmCall question
Replies: 4
Views: 6402

Re: PgmCall question

Hi, Mike, Your PHP code looks good. If you'll create a debug log then we can see what's wrong. Turn on the debug log at any point before the program call: $ToolkitServiceObj->setOptions(array('debug'=>true)); // setOptions is an alias for setToolkitServiceParams Run your script, then look for the de...
by aseiden
Wed May 27, 2015 6:43 pm
Forum: Zend Server for IBM i
Topic: Error occurred in SQL Call Level Interface
Replies: 7
Views: 8651

Re: Error occurred in SQL Call Level Interface

Check with Zend support to see if your situation matches a possible fix.