ID:               30270
 User updated by:  trustpunk at hotmail dot com
 Reported By:      trustpunk at hotmail dot com
 Status:           Open
 Bug Type:         *General Issues
 Operating System: Windows 98
 PHP Version:      4.3.9
 New Comment:

I want someone to test both codes on a Windows 98 and tell
me if this processes correctly like it did on my Windows XP.


Previous Comments:
------------------------------------------------------------------------

[2004-09-29 08:50:30] trustpunk at hotmail dot com

Description:
------------
I have been testing this script thAT I recently developed 
to search for an ISP/Hostname on my windows XP but when I
tested it on my actual server which is a Win98 , it didn't
want to read any hostnames from a domain or IP Address.

Im just wondering , is this not compatible with Windows 98
because I don't understand why it works on WinXP with the
same exact PHP version which is 4.3.9. I did do a search.



Reproduce code:
---------------
01. IP Address: Example

<?php 
$ipaddr = "68.47.121.23";          //IP Address Entered
$host   = gethostbyaddr($ipaddr); //IP To Hostname
echo "Your Hostname: $host";
?>


02. Domain Address: Example

<?php
$domain = "www.trustabyss.com";    //Domain Entered
$getip  = gethostbyname($domain); //changes to IP
$host   = gethostbyaddr($getip); //IP To Hostname
echo "Your Hostname: $host";
?>

Expected result:
----------------
The first example should turn a IP Address into a hostname.
Now I understand that not all IP's have hostnames but this
IP Address does. When I view this on my WinXP it shows just
perfectly but if im viewing this on my Win98 , it shows my
local hostname only. Same goes for the second example.

Note: This is a remote IP Address so their is no reason for
it to show my local hostname , this is driving me mad. :(



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30270&edit=1

Reply via email to