Search found 2 matches
- Tue Jul 20, 2004 5:13 am
- Forum: PHP - Code
- Topic: gethostbyaddr() returns only numerical IPs :(
- Replies: 3
- Views: 403
Joe -- yes, I guess something is not set up right, since the CLI version of php returns the hostname OK while the apache module returns the numerical IP. kettle_drum -- thanks for the suggestion, but I was hoping to be able to use native php functions. Otherwise you add the overhead of starting a sh...
- Mon Jul 19, 2004 11:59 am
- Forum: PHP - Code
- Topic: gethostbyaddr() returns only numerical IPs :(
- Replies: 3
- Views: 403
gethostbyaddr() returns only numerical IPs :(
Hi all, I am trying to resolve IP addresses into their hostnames using gethostbyaddr(). The weird thing is that I get different results if I run php from a shell than if I access the script through the web server. More specifically, the following lines in an executable file: #!/usr/local/bin/php <? ...