[Project_owners] Problem with PHP gethostbyname()
Jesper Staun Hansen
jesper at selvet.dk
Sun Dec 16 13:23:53 PST 2007
What would this simple test return:
$ip = gethostbyname('www.example.com');
I dont remember if there's a difference between using " or '
David White wrote:
> Can anyone help me here? If my code invokes gethostbyname("crap.crap"),
> it does not return the unmodified input (which should be crap.crap).
> Instead it returns the IP of the server on which the code runs (in this
> case 126.96.36.199). This does not seem at all correct. Of course, the
> call should fail but the manual says that the return result should be
> unmodified input in case of failure. Thanks,
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> Project_owners mailing list
> Project_owners at mozdev.org
More information about the Project_owners