Add PHP as CGI support.

Tere Mika!

I've added some lines checking for an additional parameter in case PHP isn't used as mod_php, but as CGI app.