Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Include PHP in all files

$
0
0

I've made a config.php file which contains all definitions and variables that should be used in all over my website, and I should include it in every single page (paying attention at different relative paths)...

Is there a way to make this file automatically visible from all PHP files without manually including it every time?

Or is there an alternative way to make all constant definitions visible everywhere?

Thank you.


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>