The default installation type for PHP is a CGI executable. Here are installation instructions:
<font face = "courier">wget "http://www.php.net/do_download.php?download_file=php-4.0.5.tar.gz&source_site=www.php.net"
tar xvfz php-4.0.5.tar.gz
cd php-4.0.5
./configure --with-mysql --enable-discard-path --enable-force-cgi-redirect --enable-track-vars
make
sudo make install</font>
You can then write shell-scripts by putting
<font face = "courier">#!/usr/local/bin/php -q</font>
as your script header.
IMPORTANT
There is a slight bug in 4.0.5 that you will have to fix before it will compile successfully. After you configure, open the file main/internal_functions.c and, near the top, you should see a line like this:
<font face = "courier">#include "something"n#include "something"n#include "something"n</font>
You need to correct this so it looks like this:
<font face = "courier">#include "something"
#include "something"
#include "something"</font>
EDIT: posted the wrong header path.
[ 06-20-2001: Message edited by: mr_sonicblue ]