framework\console\CConsoleApplication.php
CConsoleApplication::init();
if(!isset($_SERVER[‘argv’])) // || strncasecmp(php_sapi_name(),‘cli’,3))
die('This script must be run from the command line.');
这两行判断好像有问题。在linux下,用cron运行,输出This script must be run from the command line。
windows下,用浏览器也可以打开,不输出This script must be run from the command line。
请问qiang哥,这怎么解决?