I have a directory with PHP scripts in it that I want to use as the core source files for many instances of the same site, each accessing its own database. I need to somehow mirror the files in the source folder each time I set up a new instance of this site. The point here is to be able to update all of these sites in one place and keep all of my code consistent (not to mention to streamline the site set up process.
Does anyone know how to mirror a PHP file?
I tried fread() but just got a literal read out of the PHP code rather than the stuff it should have generated.