Mohammed,
First you need to configure the php java extension by downloading a prebuilt zip of it from www.php.net or compile it yourself and add the necessary lines to your php.ini file.
Then you can look at the following sample (which is part of the distribution and is called jver.php) which should explain all you need. The trick to configuring
<?
$system = new Java("java.lang.System");
print "Java version=".$system->getProperty("java.version")." <br>\n";
print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
print "OS=".$system->getProperty("os.name")." ".
$system->getProperty("os.version")." on ".
$system->getProperty("os.arch")." <br>\n";
$formatter = new Java("java.text.SimpleDateFormat",
"EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");
print $formatter->format(new Java("java.util.Date"))."\n";
?>
Note that if you have a servlet capable web server you can instead use the php servlet extension which will be much more efficient and somewhat easier to set up. I'm not sure how you configure IIS to do servlets but there are other (free) options (e.g. Tomcat or JRun).
Alex