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 Link to comment https://forums.phpfreaks.com/topic/29701-solved-stuck/ 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. Link to comment https://forums.phpfreaks.com/topic/29701-solved-stuck/#findComment-136322 Share on other sites More sharing options...
tarun Posted December 6, 2006 Author Share Posted December 6, 2006 thnx Link to comment https://forums.phpfreaks.com/topic/29701-solved-stuck/#findComment-136326 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.