Hello all... This is not working for me to show my apache version: <?php $version = apache_get_version(); echo "$version\n"; ?> Code (markup): From what I read on the php.net website, if failure, it returns a false. I'm assuming for some reason I'm getting a false. Is there any way around this that anyone knows of? When I do a phpinfo.php, the apache version shows fine. Any help would be appreciated, thanks!!!
Run this and let me know what it says: <?php if (function_exists('apache_get_version')) { if (!$version = apache_get_version()) { die('Failed'); } else { echo "$version\n"; } } else { die('Function does not exist'); } ?> PHP:
Sounds like PHP is not running as an Apache module. http://www.php.net/manual/en/ref.apache.php Cheers,
...and actually, thanks to the URL you provided me, I was able to find what would work: <?php echo "" . $_SERVER['SERVER_SOFTWARE'] ?> Code (markup): Thanks again!