Forum Moderators: coopster
<?php
// prints e.g. 'Current PHP version: 4.1.1'
echo 'Current PHP version: ' . phpversion();
// prints e.g. '2.0' or nothing if the extension isn't enabled
echo phpversion('tidy');
?>
Supports PHP 3, 4, & 5
You could also change it around a bit...
Also, if you're the only one going to see it, you could also use phpinfo();
e.g.
<?php
phpinfo();
?>