Re: [PHP4BETA] Odp: [PHP4BETA] PHP 4.0 Release Candidate 1 - Win32 binaries for servlet and java posted

From: Date: Tue, 28 Mar 2000 18:12:22 +0000
Subject: Re: [PHP4BETA] Odp: [PHP4BETA] PHP 4.0 Release Candidate 1 - Win32 binaries for servlet and java posted
Groups: php.version4 
Request: Send a blank email to php-version4+get-12759@lists.php.net to get a copy of this message
Lukasz Felsztukier wrote: >> Note: sapi/servlet allows you to run PHP inside of a servlet. Ext/java >> allows you to run java inside of PHP. In other words, you typically only >> need one or the other. > >Could you post some short sample code showing the way to do this ? Samples and a README are included in each download. Here's another sample: <?php $host = "www.yahoo.com"; $inetAddr = new Java("java.net.InetAddress"); $allAddresses = $inetAddr->getAllByName($host); echo "IP addresses for $host:\n"; while (list($i,$address) = each($allAddresses)) { echo "<br>" . $address->getHostAddress() . "\n"; } ?> - Sam Ruby

« previous php.version4 (#12759) next »