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_???; ?> Link to comment https://forums.phpfreaks.com/topic/102177-solved-url-of-website/ 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; ?> Link to comment https://forums.phpfreaks.com/topic/102177-solved-url-of-website/#findComment-523021 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.