[Xapian-discuss] PHP5 example don't understand

Olly Betts olly at survex.com
Mon Mar 19 13:20:13 GMT 2007

On Mon, Mar 19, 2007 at 01:08:09PM +0000, James Aylett wrote:
> Sounds also like you're trying to run simpleindex via a web server,
> which is not how it's designed

Indeed, but most people think "webserver" when they think "PHP" so this
is an easy mistake to make and we should check for it and issue a
helpful error message.

Is there an official way to check "is this PHP script running in a CLI
version of PHP"?  I can't see one in the documentation, but it looks
like checking $_SERVER['argc'] should work if there's no official way.


More information about the Xapian-discuss mailing list