I have a bunch of database addresses and other random long strings that I must input into functions again and again all over my site. Is there a way to make a ton of permanent, global variables in PHP that will be valid on any file on the current PHP installation?
Or should I just make a vars.php with all of the variables defined, and always include that file?
Create your file with the settings you need. Something like this:
Then include it into each page/file that needs it.