How to differentiate between http and cli requests?

前端 未结 0 877
说谎
说谎 2020-12-18 23:51

The title is quiet straightforward. I have to know on server side if the script called through HTTP request or by command line. I could examine the $_SERVER[\'argv\']<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题