Friday, 20 November 2015

20_PHP_SERVER_VARIALE_HOST_NAME

SERVER VARIABLE with HOST NAME



So if you write the above code and run the page then using HTTP_HOST it will give you the output which contain your host name … if you are currently running of the localhost then output will be :”localhost”… check out the image below


Now let’s do other operation so …create the file name config.inc.php file and write the code as specify below


So as you can see in config.in.php file we have write the code as same as above .. now we are interested to find the image folder from current directory/path then the above code is very useful.



No comments:

Post a Comment