Re: PHP with JAVA support
| From: | Robert Vetter | Date: | Thu, 21 Jun 2001 09:07:26 +0000 |
| Subject: | Re: PHP with JAVA support | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54707@lists.php.net to get a copy of this message | ||
Jim Kirkpatrick wrote:
>
> Robert,
>
> Please include the php code you're using to instantiate the class. That will
> give me a better idea of what to suggest.
>
Hi Jim,
Thanks for the response. Here comes the code:
<?
phpinfo();
$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";
?>
Robert