More on php and Rev cgi
J. Landman Gay
jacque at hyperactivesw.com
Mon Nov 6 17:45:03 EST 2006
Brian Yennie wrote:
> Jacque,
>
> How are you calling the Rev CGI from PHP?
Well, not me, but the other guy. I'm a complete php idiot. This is what
he sent me in an email for testing the "echo.cgi" standard MC test cgi:
<?php
// set command to be executed
$command = $_SERVER['DOCUMENT_ROOT'].'/cgi-bin/mc echo.cgi';
echo 'Execute this: ' . $command . '<br><br>';
echo 'Results:<br>-----------------------------------<br>';
echo exec($command);
echo '<br>-----------------------------------';
?>
And with this, he does get back a single param, the one in $0,
surrounded by the dotted lines.
Jacque
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list