dqsot35145 2018-08-30 11:11
浏览 85

在config.php中包含文件

I have 2 projects, one Moodle, the other is the authentication project. I am using this second project to store user's DB config. This is trying to implement multi-tenancy. On the auth project, when a user logs in it fetches the database config and it is to pass it to the config.php file params. These params are stored as global sessions variables in the auth app. So I included the dashboard.php (from the auth app) file in the config.php (Moodle) thus. Once in included, and Moodle page refreshed, it returns error on the page.

    $userloogedin = '/Applications/XAMPP/xamppfiles/htdocs/register/dashboard.php';
include( $userloogedin );

On the second project when I refreshed the page it returns error on the page. What could be the problem? Am I including it in a wrong way?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
    • ¥15 微信会员卡接入微信支付商户号收款
    • ¥15 如何获取烟草零售终端数据
    • ¥15 数学建模招标中位数问题
    • ¥15 phython路径名过长报错 不知道什么问题
    • ¥15 深度学习中模型转换该怎么实现
    • ¥15 Stata外部命令安装问题求帮助!
    • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
    • ¥15 TYPCE母转母,插入认方向
    • ¥15 如何用python向钉钉机器人发送可以放大的图片?