[PHP] Re: Detecting Server API (CGI or Apache) at runtime?

2003-11-25 Thread Richard Cyganiak
"Richard Cyganiak" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > is there a way to tell at runtime if PHP is running as an Apache module or > through CGI? Replying to myself ... I found the answer, there's a function php_sapi_name() for this purp

[PHP] Detecting Server API (CGI or Apache) at runtime?

2003-11-23 Thread Richard Cyganiak
Hi all, is there a way to tell at runtime if PHP is running as an Apache module or through CGI? phpinfo() shows this piece of information ("Server API" on the first page). But is it available as a server variable or a constant or whatever? I want to know this because I want to set the HTTP statu