rh 6.2 only comes with php3 rpm, but u can always install php4 yourself, there are alot of sites about installation of php, for windows 9x/nt, i use phptriad for windows
here is how u verify the installation
create a file called "phpinfo.php", the extension is depends on what you specified, it could be .php4 or .phtml
put the code u just mentioned
<?
phpinfo();
?>
fire up your browser and point to that file
http://localhost/phpinfo.php
you will see some php predefined variables
if not installation went wrong some where