If the value you want to send back to php is an integer you could just
say
exit $number;
from perl and that will be put into your $var.
Otherwise use exec() instead of system.
exec("/path/to/perlscript.pl", $scriptOutputArray, $scriptExitValue);
Anything that gets printed from the perl scrip
Ok,
I got it to work.now how do I take a varaible back into PHP
I do a $var = system("/path/to/cgi $varforCGI")
and in the CGI script I do a print $varforPHP
however it prints the varforPHP to the broswer, I need it saved it var
Any (more) help would be great!!
Michael
On Wed, 6 Mar 2002
If you're running a perl script on the command line you would use
/path/to/perl/script.pl value1 value2 value3 ...
In your perl script $ARGV[1] should hold value1, $ARGV[2] should hold
value2, etc.
-Steve
On Wednesday, March 6, 2002, at 02:48 PM, [EMAIL PROTECTED] wrote:
> I need to pass a v
> I need to pass a variable to Perl from a PHP script. I am somewhat know
> PHP but I do NOT know perlI am running my perl script off of the
> command line. I tried /path/to/somewhere/script.pl?var=var
> but it did not work.
> I would love any help you could provide me
it would be
/path/
I need to pass a variable to Perl from a PHP script. I am somewhat know
PHP but I do NOT know perlI am running my perl script off of the
command line. I tried /path/to/somewhere/script.pl?var=var
but it did not work.
I would love any help you could provide me
Thanks,
Michael
--
PHP G
i've been working on a method of handling sessions that
would be portable and easy to implement in PHP and Perl.
i've got everything working fine except the
interoperability of serialized data.
the reason it's important is becuase my session table
basically looks like this: (i left out the 't
I'm not sure what you really want to do, but you can use system() (or others) to
execute something on your web server. (You may not be able to do that. It
depends on server config)
Regards,
--
Yasuo Ohgaki
"Calin Rotaru" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTE
Hello
Is possible to execute a file which was write in Perl from inside a PHP file?
If yes, how can I do that?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mai
8 matches
Mail list logo