corillo181 Posted September 14, 2007 Share Posted September 14, 2007 does anyone have a better way to include a lot of file in one page? i got a page with a lot of scripts and everything I'm going to use one i have to include it so my page is staring to look like this include_once($_SERVER['HTTP_HOST'].'/function/header.php'); include_once($_SERVER['HTTP_HOST'].'/function/up.php'); include_once($_SERVER['HTTP_HOST'].'/function/ad.php'); include_once($_SERVER['HTTP_HOST'].'/function/seven.php'); Quote Link to comment https://forums.phpfreaks.com/topic/69370-solved-include-files/ Share on other sites More sharing options...
MadTechie Posted September 14, 2007 Share Posted September 14, 2007 just an idea include_once($_SERVER['HTTP_HOST'].'/function/common.php'); include_once($_SERVER['HTTP_HOST'].'/function/header.php'); include_once($_SERVER['HTTP_HOST'].'/function/up.php'); include_once($_SERVER['HTTP_HOST'].'/function/ad.php'); include_once($_SERVER['HTTP_HOST'].'/function/seven.php'); Quote Link to comment https://forums.phpfreaks.com/topic/69370-solved-include-files/#findComment-348554 Share on other sites More sharing options...
corillo181 Posted September 15, 2007 Author Share Posted September 15, 2007 ha, i guess that could work.. thanx Mad!! Quote Link to comment https://forums.phpfreaks.com/topic/69370-solved-include-files/#findComment-348808 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.