Is there a way to check if PHP is installed on an Apache or IIS server within the PHP environment itself?
If so, how?
Create a PHP script called php.php with the content:
and run it from your browser. Or from command line, run:
php -v