我是YII框架的新手,我想知道是否有办法知道/检查您是从控制台还是在浏览器中运行?
谢谢!
同样的方式,您将确定是否在控制台中运行
PHP应用程序.
What is the canonical way to determine commandline vs. http execution of a PHP script?
谢谢!
What is the canonical way to determine commandline vs. http execution of a PHP script?