阅读背景:

PHP可以检测它是从cron作业还是从命令行运行的?

来源:互联网 

I'm looking for way to PHP to detect if a script was run from a manual invocation on a shell (me logging in and running it), or if it was run from the crontab entry.I'm looking for way to PHP to detect if a scrip




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: