PHP and CGI
| From: | sono-io at fannullone dot us | Date: | Wed, 19 Aug 2009 00:10:12 +0000 |
| Subject: | PHP and CGI | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-296943@lists.php.net to get a copy of this message | ||
I've searched high and low for an answer to this. Hopefully someone here might know. Can PHP be used under a CGI? I tried to put the following code on one of my perl shopping cart pages but it doesn't work:
<?php
echo "<select name=\"Year\">";
for ($year = date("Y") ; $year <= date("Y") + 8 ; $year++) {
echo "<option value=\"$year\">$year</option>\n";
}
echo "</select>";
?>
It works fine on a .php page. I know that SSI will not work under CGI, so maybe it's the same for PHP. Is there anyway to get this to work?
Thanks,
Frank