drzbc6003 2016-12-09 20:25
浏览 52

从新子文件夹中的文件执行现有php脚本中的类

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...

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀
    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
    • ¥15 关于#hadoop#的问题
    • ¥15 (标签-Python|关键词-socket)
    • ¥15 keil里为什么main.c定义的函数在it.c调用不了
    • ¥50 切换TabTip键盘的输入法
    • ¥15 可否在不同线程中调用封装数据库操作的类
    • ¥15 微带串馈天线阵列每个阵元宽度计算
    • ¥15 keil的map文件中Image component sizes各项意思