×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
There are a few things. First there are a lot of echo statements in your program. These go to stdout, but it appears that you have removed the stdout code from your caller. Your php does have output, so you need that stuff:
open UNIX;
read UNIX record;
dow not %eof(UNIX);
outrec = record;
write QSYSPRT outrec;
read UNIX record;
enddo;
close UNIX;
Second, since you are not displaying the output, you are missing why the program is ending. It is looking for 4 arguments, but only receiving 3, so it echos an error message (to stdout), and ends.
Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx
-----"Mario Martoriello" <martoriello@xxxxxxxxxxxxxxx> wrote: -----
To: "Rpg programming" <rpg400-l@xxxxxxxxxxxx>
From: "Mario Martoriello" <martoriello@xxxxxxxxxxxxxxx>
Date: 02/16/2016 04:29AM
Subject: Problem calling PHP from RPG (Unixcmd)
Bryan
I post the php script at following
http://code.midrange.com/2ec2dd35a6.html
it use also 2 class that I don’t post but I can if you need.
Best regards
mario
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.