Hi,
While making a function to GPG encrypt a given message I found out I
needed to run PHP as a CGI script as my user and, although I've
accomplished this, it seems a little curious. I put my scripts in the
/cgi-bin , added #!usr/local/bin/php to the top, made them executable
but I found they can't have the .php extension or the Apache module
will parse them. So I just gave them no extension. Is there a
prefered ext for this method (even though I assume almost any other
will work) ? .cgiphp ?
They execute fine but they echo "#!/usr/local/bin/php" to the browser,
which makes sense as it /is/ parsed by PHP, but still.. Anyway to
stop this?
Can I safely include these PHP CGIs from my Apache .php scripts? If
not, could I have an Apache script call the CGI script with exec() so
The Apache mod would stall as the CGI module (under me) did it's
business and returned what I need ?..