|
<?php $system = new Java("java.lang.System"); print "Java version=".$system->getProperty("java.version")."<br>"; print "Java vendor=".$system->getProperty("java.vendor")."<br><br>"; print "OS=".$system->getProperty("os.name")." ". $system->getProperty("os.version")." on ". $system->getProperty("os.arch")."<br>"; $formatter = new Java("java.text.SimpleDateFormat", "EEEE, MMMM dd, yyyy 'at' hh:mm:ss a zzzz"); print $formatter->format(new Java("java.util.Date")); ?>
Java version=1.4.2_05 Java vendor=Sun Microsystems Inc. OS=Linux 2.6.7-1-386 on i386 Saturday, April 16, 2005 at 4:21:56 AM Eastern European Summer Time
|