Re: PHP4.0.2&Win32&Java/Servlet support - investigated further
| From: | Sam Ruby | Date: | Mon, 11 Sep 2000 01:38:23 +0000 |
| Subject: | Re: PHP4.0.2&Win32&Java/Servlet support - investigated further | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2569@lists.php.net to get a copy of this message | ||
A comment on the "duplicate function" warning - there is no way that you can
get this message prior to 4.0.2 because these functions didn't exist prior
to 4.0.2.
This being said, the jawt example is a bit of a wierd example for a server
process (the typical usage for PHP). For example, on many JDKs it refuses
to terminate. Here's a few more "normal" examples:
<?
$hostname = "www.yahoo.com";
print "IP addresses for $hostname:<br>\n";
$InetAddr = new Java("java.net.InetAddress");
foreach ($InetAddr->getAllByName($hostname) as $ip) {
print " " . $ip->getHostAddress() . "<br>\n";
}
?>
<?
$zipfile = new Java("java.util.zip.ZipFile", "$JAVA_HOME/jre/lib/rt.jar");
$entries = $zipfile->entries();
while ($entries->hasMoreElements()) {
$entry = $entries->nextElement();
print "$entry->name\n";
}
?>