beginning_php thread: pass cgi perl script values back to php script?
Message #1 by plaztic@h... on Wed, 19 Dec 2001 05:16:27|
I have to use a cgi-perl script to process credit card transactions.
How do I pass the variables needed to the perl script and then get the
results from the perl script sent back to my php script?
Any suggestions appreciated.
Message #2 by slippy_chicken@h... on Fri, 21 Dec 2001 00:41:02|
Well the most obvious way to go about doing that would be to write the
credit card info to a file, then call the PHP script upon it through a
redirection. Or you could include it in their URL, though that'd be a bit
obvious. Really, there's no good way to go about it unless you can fiddle
with the perl a bit.
> I have to use a cgi-perl script to process credit card transactions.
> How do I pass the variables needed to the perl script and then get the
> results from the perl script sent back to my php script?
> Any suggestions appreciated.
Message #3 by plaztic@h... on Fri, 21 Dec 2001 06:27:06|
I considered writing to a file...but there are several variables that I
have to read and then execute an action based on these values.
It just seems like a totally inefficient way of doing it - especially if
there is high volume.
I've read some stuff about using exec() and passthru() and then putting
perl output into an array but the PHP official help manual (and user
comments) don't go into the specifics of doing this. Anyone with thoughts
on this puzzle?
We should globally ban all other server languages and keep PHP ;-)