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
1.4m articles
1.4m replys
5 comments
57.0k users