dezkit Posted April 21, 2008 Share Posted April 21, 2008 If i put an index.php in a subdirectory called "subdirectory" in my website called "website.com" <?php $http_host = $_SERVER['HTTP_HOST']; $http_??? = $_SERVER['???']; echo $http_host; echo "/"; echo $http_???; ?> Quote Link to comment Share on other sites More sharing options...
dezkit Posted April 21, 2008 Author Share Posted April 21, 2008 solved <?php $www = "www."; $http_host = $_SERVER['HTTP_HOST']; $script_filename = $_SERVER['SCRIPT_FILENAME']; echo $www; echo $http_host; echo $script_filename; ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.