cdherold has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to get a variable I have in PHP code to pass through to a perl script. I can execute the perl script from PHP using passthru() or system(), among others, however, I am unclear on how to get the variable from the PHP to be passed and interpreted in the executed Perl script.
I tried
passthru('/home/test.cgi';$var)
but although test.cgi runs, it does not interpret $var. I am not even sure if the placement of $var in the code above is appropriate. I have read the function instructions at php.net, but they did not appear to specify such an option. I only picked it up from searches on google and looking at other pieces of simplistic code.
Most Humbly,
Chris
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing variables from PHP to Perl using passthru()
by BaldPenguin (Friar) on Jun 15, 2005 at 22:28 UTC | |
by cdherold (Monk) on Jun 16, 2005 at 21:40 UTC | |
by BaldPenguin (Friar) on Jun 17, 2005 at 06:17 UTC | |
by cdherold (Monk) on Jun 17, 2005 at 06:41 UTC | |
|
Re: Passing variables from PHP to Perl using passthru()
by Xaositect (Friar) on Jun 16, 2005 at 18:58 UTC | |
|
Re: Passing variables from PHP to Perl using passthru()
by chanio (Priest) on Jun 17, 2005 at 04:48 UTC |