[Xapian-discuss] PHP5 example don't understand

Daniel Ménard Daniel.Menard at laposte.net
Mon Mar 19 17:55:45 GMT 2007


Olly Betts a écrit :
> 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.
>   
I think this is what you're looking for:
http://www.php.net/manual/fr/function.php-sapi-name.php

Best regards,

Daniel



More information about the Xapian-discuss mailing list