Have I got this right?
I am doing
"$BRPHP" );
exec (' ../cgi-bin/browser.pl', $arr );
echo $arr[2];
echo $arr[3];
echo $arr[4];
echo $arr[5];
echo $arr[6];
?>
1. Am I passing $arr[1] to the perl script?
2. If no, what should I do instead?
3. If ye
Right, I used
$output = shell_exec("perl browser.pl");
echo "output";
as Radek suggested. To call my browser-sniffing perl script and read back what the
script prints.
My trouble now is that the perl script, being called by the php script rather than by
SSI, no longer seems to
Hi Radek,
I tried to do something with this and failed dismally.
Is it possible for you to give me a really basic working example of what you suggest?
Thanks,
Philip Pawley
At 26/12/03 12:29 -0500, you wrote:
>Check out shell_exec() and its siblings. I'd likely use it like so $output =
>shell
My site, at the moment, uses SSI to call a Perl browser-sniffing script.
I would like to:
1. use php to call the Perl script.
2. then save the values the Perl script outputs as php variables.
Can this be done? If so, how?
Hi, Philip. If you are not 100% stuck on using a perl script to sniff
t
Check out shell_exec() and its siblings. I'd likely use it like so $output =
shell_exec("perl myscript.pl"); and then do something with the $output
variable
R>
> -Original Message-
> From: Philip Pawley [mailto:[EMAIL PROTECTED]
> Sent: December 26, 2003 12:07 PM
> To: php-general
> Subje
5 matches
Mail list logo