How do I get the Apache version?
Actually, I want to use the setenv()
function in a PHP file, but I am not able to use that. It throws an error, undefined call to a function setenv()
. It might be because of my Apache version.
You should be able to use the simple built-in php function apache_get_version()
;
from php manual :
<?php
$version = apache_get_version();
echo "$version\n";
?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With