I am looking for a way to load classes in PHP without using hard names.
The idea behind the script is to load a text file with the names of the โcomponentsโ (classes), and then load them by the names in the file. For example:
<xml><Classes><class name="myClass"/></Classes></xml>
When PHP starts up, it will need to do something like this:
require_once {myClass}".class.php"; var myclass = new {myClass}();
Lee loftiss
source share