I have a generic script that Im includes in my PHPcron files and files that are viewed through the browser. Some of the code I need is only for non cron files. How can I determine if execution is done from the CLI or through the browser (I know that this can be done by passing some arguments with cron files, but I do not have access to crontab). Is there another way?
php
binoy Jan 02 '09 at 11:33 2010-01-02 11:33
source share