« Previous Next »

Thread: How to detect fastcgi is running on IIS7?

Last post 04-08-2009 7:54 PM by xye. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 04-08-2009, 3:36 AM

    • xye
    • Not Ranked
    • Joined on 04-08-2009, 3:28 AM
    • Posts 2

    How to detect fastcgi is running on IIS7?

     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?

  • 04-08-2009, 2:38 PM In reply to

    • pierrejoye
    • Top 75 Contributor
    • Joined on 02-12-2009, 10:52 PM
    • Germany
    • Posts 73

    Re: How to detect fastcgi is running on IIS7?

     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

     

    --
    Pierre

    http://blog.thepimp.net | http://windows.php.net
  • 04-08-2009, 7:54 PM In reply to

    • xye
    • Not Ranked
    • Joined on 04-08-2009, 3:28 AM
    • Posts 2

    Re: How to detect fastcgi is running on IIS7?

     Thanks for your help. :)

Page 1 of 1 (3 items)
Microsoft Communities