我在尝试运行php脚本时遇到以下问题:
/usr/bin/php /home/meet/web/online.php 0并且我有以下错误消息:
PHP Warning: require(/home/meet/web/wee/weeAutoload.php): failed to open stream: No such file or directory in /home/meet/web/wee/wee.php on line 425
Warning: require(/home/meet/web/wee/weeAutoload.php): failed to open stream: No such file or directory in /home/meet/web/wee/wee.php on line 425
PHP Fatal error: require(): Failed opening required '/home/meet/web/wee/weeAutoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/meet/web/wee/wee.php on line 425
Fatal error: require(): Failed opening required '/home/meet/web/wee/weeAutoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/meet/web/wee/wee.php on line 425第425行周围的代码是:
//require(WEE_PATH . 'weeAutoload' . CLASS_EXT);
require("/home/meet/web/wee/weeAutoload.php");
weeAutoload::addPath(WEE_PATH);我检查了一下,文件/home/meet/web/wee/weeAutoload.php存在于服务器上。
我做错了什么?
提前感谢您的宝贵帮助。
发布于 2018-07-19 07:46:02
已修复...是我的错
我只需在与online.php文件相同的文件夹中运行该脚本
cd /home/meet/web
/usr/bin/php /home/meet/web/online.php 0就这样
无论如何,谢谢你们的帮助:)
https://stackoverflow.com/questions/51410940
复制相似问题