我在尝试运行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
在服务器上是否存在。
我做错了什么?
在此先感谢您的宝贵帮助。
答案 0 :(得分:0)
修正...我的错误
我只需要在与online.php文件位于同一文件夹后运行脚本
cd /home/meet/web
/usr/bin/php /home/meet/web/online.php 0
就这样
仍然感谢您的帮助:)