Hello,
I'm using a script that requires me to place some SSI code in the head of my page and rename it to "index.shtml", however I want to name the page "index.php" so I can use PHP and capture affiliate IDs sent from other sites 🙂
The code they want me to use is:
<!--#exec cmd="/home/user/cgi-bin/script.cgi"-->
What would I use in PHP to get the same results? I researched exec() but I'm having trouble getting the same results.
BTW, I've tried this so far:
<?php exec(/home/user/cgi-bin/script.cgi); ?>
AND also this:
<?php
$command = "/home/user/cgi-bin/script.cgi";
exec($command, $result, $rval);
echo "$result";
?>
Neither worked.