Hello everyone,
I have the following problem:
Two versions of a PHP-game are on a server and they each need their own include-paths so they don't use each other's code. Since until now I didn't have more than one project on the server all the include-paths were set in the php.ini which is extremely bad as I was told now. I asked this question in the German forum already (viewtopic.php?f=4&t=43893) but the guy who answered my questions lost his patience after a while and ran away swearing at my noobness as soon as he realized that while I surely know how to program I don't know much about PHP-specifics and - probably more importantly - server configuration. I came as far as
"If you want each project to have their own include paths, then give each one a config.php which contains a single command, i.e. set_include_path("path1;path2;..."), and make the server call this file each and every time someone starts a php-script. You don't need to use 'include(relative/path/to/config.php)' in each and every single script, you can automize it."
So my question is: How do I automize this?
Greetings,
Squall83