I quite a large php script that I am adapting and adding to, the script currently executes from the root folder, I need to adapt it so that I can add additional sub folders and include and run this script alongside the new code and subfolder.
I have already changed all the includes and require_once to absolute so they can be run from files in new subfolders. I just need to find a way to make the classes run now.
Does any one have any ideas as to how to approach this? An example of the class code is as follows:
\Script\Addons::register('content_editor', 'story_detector');
$escapeObj = new \Script\Escape();
Thanks in advance...