Jump to content

$_SERVER["SERVER_NAME"] returns some ip address


Recommended Posts

Hi,

 

as far as I know $_SERVER["SERVER_NAME"] and $_SERVER["REQUEST_URI"] returns the server address like http://example.com/.

 

But some cases, $_SERVER["SERVER_NAME"] returns an ip address like 203.111.111.111 and  $_SERVER["REQUEST_URI"] also returns the ip address with port like 203.111.111.111:25.

 

What is  going on or going wrong?

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.