I was writing some php code with a couple friends of mine a while back. I decided to look at some of the code we had written and noticed that almost all the php documents had the line: require_once('appvars.php'); at the top. I know that this isn’t a built in php file, but one that they had created. I figure it is probably something that they had copied from a tutorial or beginners book so I assume it is a common practice of sorts.
in short: what are the contents of appvars.php and what is its purpose?
note: The server has been offline for several months now so I don’t have access to it and thus can’t look at the source its self
many thanks stackoverflow
More than likley a file containing common variables used within the application.
Impossible to tell without seeing the code though, it could just print an ascii representation of a pink elephant at the top of every page for all we know.