Discussion in 'PHP' started by suresh2220, Jun 12, 2008.
Hi, Does any one know the php function to detect the web server(apache/IIS) that the server using.
echo phpinfo(); echo php_sapi_name();
You can also use: <?php echo $_SERVER['SERVER_SOFTWARE']; ?> PHP:
<?php echo $_SERVER['SERVER_SOFTWARE']; ?>
Separate names with a comma.