[Project_owners] Problem with PHP gethostbyname()

David White whitedavidp at yahoo.com
Sun Dec 16 13:15:46 PST 2007


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 140.211.166.81). This does not seem at all correct. Of course, the

call should fail but the manual says that the return result should be
in 
unmodified input in case of failure. Thanks,

David




      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping


More information about the Project_owners mailing list