in reply to Telling if your script is running from web page or CLI

Although everything can be fooled, heuristics with a good chance of success are:
  • Comment on Re: Telling if your script is running from web page or CLI