Is any method is available which through we can determine that our current connection is through internet Or intranet using php script.
Thanks.....
You can use $_SERVER["HTTP_HOST"] variable to obtain if it is localhost or other IP address.
$_SERVER["HTTP_HOST"]
localhost
2.1m questions
2.1m answers
60 comments
56.8k users