steelmanronald06 Posted March 13, 2006 Share Posted March 13, 2006 can I include a php file in apache by using:[code]include conf/monitor_apache.php[/code]and if so, would that mean that the php file would exectue everytime someone went to any page on my website that is hosted through that apache server?what I want to do is have a .php file that is included in just one place and have it execute on every page on my website without me going into each file on my server and doing and include '../includes/file.php'; Quote Link to comment https://forums.phpfreaks.com/topic/4870-php-in-httpdconf/ Share on other sites More sharing options...
ToonMariner Posted March 13, 2006 Share Posted March 13, 2006 you can set the auto prepend setting in your php.ini file..... Quote Link to comment https://forums.phpfreaks.com/topic/4870-php-in-httpdconf/#findComment-17158 Share on other sites More sharing options...
wildteen88 Posted March 13, 2006 Share Posted March 13, 2006 You might want to look at these settings in the php.ini file:; Automatically add files before or after any PHP document.auto_prepend_file =auto_append_file = Quote Link to comment https://forums.phpfreaks.com/topic/4870-php-in-httpdconf/#findComment-17159 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.