Reply to PHP and gethostbyaddr

Your name:

Reply:


Posted by J�rn Dahl-Stamnes on 06/15/06 08:20

I have a PHP script which contain the following code:

$hostname = gethostbyaddr ($ip);

Until yesterday, the gethostbyaddr returned the hostname of the given
IP-addresse. But yesterday it began to return the name of the host the
web-server is running on regardless of the given IP. If I do a 'host <IP>'
from a shell on the same machine, I get the correct hostname.

I have tried to restart the web-server (Apache 2.0) without luck.

Any hints about what's wrong? Do I need to kick the OS in the CPU (reboot)?

--
Jørn Dahl-Stamnes
http://www.dahl-stamnes.net/dahls/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация