tarun Posted December 6, 2006 Share Posted December 6, 2006 how do ya get the domain when using the include thing without writng out the whole thingexampleinclude("$domain/footer.php");or if u have any other way not using $domian plz hlp methnx ppl Quote Link to comment Share on other sites More sharing options...
papaface Posted December 6, 2006 Share Posted December 6, 2006 [code]$host = $_SERVER['HTTP_HOST'];include($host . "/footer.php");[/code]Should work. Quote Link to comment Share on other sites More sharing options...
tarun Posted December 6, 2006 Author Share Posted December 6, 2006 thnx 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.