In php, how to detect the execution is from CLI mode or through browser?
<p>I have a common script which Im including in my php cron files and the files which are accessing through the browser. Some part of the code, I need only for non cron files. How can I detect whether the execution is from CLI or through browser (I know it can be done by passing some arguments with the cron files but I dont have access to crontab). Is there any other way ?</p>

<p>Regards
Binoy</p>
