Is there an alternative way to get my Apache version without using the below code?
<?php echo $_SERVER['SERVER_SOFTWARE']; ?>
Returns "Apache".
<?php echo apache_get_version(); ?>
Returns "Fatal error: Call to undefined function apache_get_version()".
Note: I am using a Linux server with PHP v5.3.1, and anything returned with a linux-only command via the shell using exec() or shell_exec() would be acceptable. I just want to get it detecting the version of Apache for Linux at least.
execwithhttpd -vor trycurl -I localhostand parse that