Not really... Just compile it as a module and install it in the users
binary directory -- make sure you put the php.ini file in that directory or
you will not be able to control the executables attributes.
Then write your script as you would a perl script with the 'shabang'
directory to the executable and <? YOUR CODE HERE ?> dealio. I did the same
thing so I can run PHP in the CRON files -- so much more simple to develop
php tabs instead of Perl tabs:
#!/usr/local/bin/php -q
<? // <--Don't forget these!!! Or it will treat it as HTML
// ***************************************************
// PHP CODE
// ***************************************************
?> // <--Don't forget these!!! Or it will treat it as HTML
The QUIET (q) option is optional, but I like to put it in just in case...
On my server I run it as both a module and a CGI executable. Having both
options is VERY useful.
Hope this helped =o)
Carlos Mabalot
Digital Hum Interactive Networks
webmaster@digitalhum.net