| Yes, you can run PHP as CGI. In this mode, PHP is handled identically to Perl, except you should place the following as the first line of your code:
#!/usr/local/bin/php
and enclose your php commands within <? and ?> tags.
You must also name your file with a .cgi extension (instead of .php) and make sure it is user-executable and not in a world-writeable directory - just like any other CGI script. |