Search found 187 matches

by scottgcampbell
Tue Sep 01, 2015 4:28 pm
Forum: Zend Server for IBM i
Topic: php-cli command is not found
Replies: 9
Views: 6142

Re: php-cli command is not found

Does it work if you add it to your path manually then call php-cli -v

Code: Select all

export PATH=$PATH:/usr/local/zendsvr6/bin
export
php-cli -v
by scottgcampbell
Tue Sep 01, 2015 3:41 pm
Forum: Zend Server for IBM i
Topic: php-cli command is not found
Replies: 9
Views: 6142

Re: php-cli command is not found

Here is what I have for the ls, your permissions don't look quite right to me.... $ ls -l /usr/local/zendsvr6/bin/php-cli -rwxr-xr-x 1 QSECOFR 0 223 Feb 4 2015 /usr/local/zendsvr6/bin/php-cli so depending on who 137 is and who is running script the problem may be that they don't have permission to e...
by scottgcampbell
Tue Sep 01, 2015 2:26 pm
Forum: Zend Server for IBM i
Topic: php-cli command is not found
Replies: 9
Views: 6142

Re: php-cli command is not found

what do you get when you are in QP2TERM and do:

Code: Select all

ls -l /usr/local/zendsvr6/bin/php-cli  
and

Code: Select all

cat /usr/local/zendsvr6/bin/php-cli  
Scott
by scottgcampbell
Mon Aug 24, 2015 4:24 pm
Forum: Zend Studio for IBM i
Topic: Debug batch php-cli?
Replies: 1
Views: 5757

Re: Debug batch php-cli?

The [21-Aug-2015 16:19:20 America/Creston] var0 is debug info coming from the compatibility wrapper (or i5Toolkit), don't remember where exactly but I took it out of my copy. Can you post an example of how you are calling the script both interactively and in batch? I've used the IBM system debugger ...
by scottgcampbell
Tue Aug 18, 2015 1:42 pm
Forum: PHP Questions / Hints
Topic: How to standardize web pages?
Replies: 3
Views: 3791

Re: How to standardize web pages?

Is it possible to mix PHP and HTML code in the same file? Yes, but the PHP has to be within start <?php and end ?> tags (maybe the cause of your 500 error below?) and the HTML outside of the tags. I have tried to embed a simple <?php echo 'Hello from PHP'; ?> script in an html file but the script d...
by scottgcampbell
Fri Aug 14, 2015 4:20 pm
Forum: Zend Server for IBM i
Topic: Zend5250Emulator "Error on parsing XML string"
Replies: 4
Views: 2648

Re: Zend5250Emulator "Error on parsing XML string"

The 5250 emulator uses the XMLToolkit and it does have a 32k plugSize (close to 32040) but I thought the default was 512K or 1M. You may want to take a look at your toolkit.ini to see if the default value has been overridden. Or try changing the default to see if that helps.

Scott
by scottgcampbell
Fri Aug 14, 2015 1:57 pm
Forum: Zend Server for IBM i
Topic: Zend5250Emulator "Error on parsing XML string"
Replies: 4
Views: 2648

Re: Zend5250Emulator "Error on parsing XML string"

You could try changing /usr/local/zendsvr6/5250/API/Zend/5250/XmlParser.php to log the XML it is getting back so you can try to determine what the issue is or post it here for suggestions. That error only happens in one place on line 24, so just put the XML out to a file before throwing the error. S...
by scottgcampbell
Wed Aug 05, 2015 9:26 pm
Forum: Zend Server for IBM i
Topic: Zend Server and IBM i V6R1 support
Replies: 4
Views: 3219

Re: Zend Server and IBM i V6R1 support

We are at V6R1 and are running:

Zend Server Version: 8.0.2
Build: 95060
Profile: Production

I'll be upgrading to 8.5 hopefully this month. Will try to remember to reply here when I do.

Scott
by scottgcampbell
Tue Aug 04, 2015 9:14 pm
Forum: PHP Questions / Hints
Topic: How to standardize web pages?
Replies: 3
Views: 3791

Re: How to standardize web pages?

Probably the easiest would be as you said to have a header and footer that you include in each page: <?php include_once './header.php'; ?> Body of the page goes here <?php include_once './footer.php'; ?> Then any changes you want to make to the "base" only has to be done in one place. Also you can d...
by scottgcampbell
Fri Jul 10, 2015 2:54 pm
Forum: PHP Questions / Hints
Topic: Sending Stream File Directly to Printer
Replies: 3
Views: 4343

Re: Sending Stream File Directly to Printer

I'd say that is not possible unless you are in a very controlled environment (if you are talking about a controlling all the PCs that are using your APP, in an office for example). Otherwise there is NO way for the server (PHP) to send the file to the printer on the PC (security nightmare or configu...