Re: Re: find out ip address [beginner]

From: Date: Mon, 24 May 2004 22:55:01 +0000
Subject: Re: Re: find out ip address [beginner]
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186860@lists.php.net to get a copy of this message
* Thus wrote Chris W. Parker (cparker@swatgear.com): > Jonesy <mailto:gmane@jonz.net> > on Monday, May 24, 2004 2:21 PM said: > > > WFM: > > |$ ping ibm.com > > |PING ibm.com (129.42.18.99) 56(84) bytes of data. > > : > > wow. that's the weirdest looking php i've ever seen. is that a beta or > something? what ya talking about? $ cat ping #!/usr/local/bin/php <?php $hostname = $argv[1]; $ip = gethostbyname($hostname); echo "PING $hostname ($ip) 56(84) bytes of data\n"; Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#186860) next »