A
Anonymous
Guest
Helo guys,
I have a php script like :
<?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
echo $hostname;
?>
When it runs on a local server, it shows IP : localhost
But the problem is, when i upload the file, it shows IP : ws132018.corporate-access.com
Why is different? And what IP address (ws132018.corporate-access.com) is it?
Can u give me a better solution? Thx b4.
I have a php script like :
<?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
echo $hostname;
?>
When it runs on a local server, it shows IP : localhost
But the problem is, when i upload the file, it shows IP : ws132018.corporate-access.com
Why is different? And what IP address (ws132018.corporate-access.com) is it?
Can u give me a better solution? Thx b4.