« Previous Next »
Last post 04-08-2009 7:54 PM by xye. 2 replies.
Average Rating Rate It (5)Thank you for the rating!
Page 1 of 1 (3 items)
Sort Posts: Oldest to newest Newest to oldest
I can use $_SERVER["SERVER_SOFTWARE"] to detect which web server is running on my system. But I don't know how to detect whether I'm using fastcgi.
Anybody has suggestion for this?
Hi,
You can use the php_sapi_name function. For example:
<?php echo "PHP running using the " . php_sapi_name() . " SAPI"; ?>
will output:
PHP running using the cgi-fcgi SAPI
Thanks for your help. :)