
May 27th, 2000, 03:49 AM
|
|
Junior Member
|
|
Join Date: May 2000
Location: Oslo, Norway
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Bit of an odd error, not sure its supposed to work that way. Here is a work around though:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
<?
@$host = gethostbyname("www.somebunkdomain.com"));
if ($host == "www.somebunkdomain.com") {
print("Couldn't resolve host.");
}
else {
print("Resolved to: $host");
}
?>
[/code]
@ can be very handy to suppress errors
N.
|