php and java example

<?php
// get instance of Java class java.lang.System in PHP
$system = new Java(‘java.lang.System’);
print ‘Java version=’.$system->getProperty(‘java.version’).’ <br>’;
print ‘Java vendor=’ .$system->getProperty(‘java.vendor’).’ <br>’;
print ‘OS=’.$system->getProperty(‘os.name’).’ ‘.
$system->getProperty(‘os.version’).’ on ‘.
$system->getProperty(‘os.arch’).’ <br>’;
?>

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*