detect cli sapi

[email protected] (Tom Worster)
Newsgroups php.general
Message-ID <C65584E9.D0AF%[email protected]>
what's a reliable way to detect that the sapi is cli, including in a
included scripts?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.