Re: gethostbyaddr

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: gethostbyaddr
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3168@lists.php.net to get a copy of this message
i have found that error_reporting(5); makes life a lot easier :-) try that :) i have couple of divide by zero errors suppressed like that ;) put it on top of file! -- Regards, -- Masood Nasir :-) [Systems Engineer] - http://www.masood.net ;) -- One Net, Lahore, Pakistan. <http://www.one.net.pk> On Mon, 26 Jun 2000, Thomas Deliduka wrote: > I found it interesting that on 6/26/00 9:14 PM Masood Nasir said: > > > well, you can try that and let everyone know if it works or not. :-) what > > is the error message? > > Well, this is the error messages: > > Warning: Unable to resolve 12.125.143.5 in /path/to/file/testing.phtml on > line 5 > Warning: Unable to resolve 12.125.143.5 in /path/to/file/testing.phtml on > line 6 > > Here is the code: > > <? > $ip = "12.125.143.5"; > > echo "Testing: $ip<BR>"; > if (gethostbyaddr($ip)) { > $address = gethostbyaddr($ip); > } else { > $address = $ip; > } > > echo "Result: $address"; > ?> > > So, I guess it doesn't work. Man, how can you get it not to give a warning > to the screen? Perhaps it's my debug level? > -- > > Thomas Deliduka > IT Manager > ------------------------- > New Eve Media > The Solution To Your Internet Angst > http://www.neweve.com/ > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#3168) next »