Have any Question?

You can ask below or enter what you are looking for!

How to get directory, domain & ip info?

To get Valid Domain, Valid IP & Valid Directory of your domain use the below code in any php file

<?php
var_dump($_SERVER["SERVER_NAME"]);         
var_dump((isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : $_SERVER["LOCAL_ADDR"]));         
var_dump(dirname(__FILE__));         
?>

Leave a Reply

Your email address will not be published. Required fields are marked *