Possible Duplicate:
What is the canonical way to determine commandline vs. http execution of a PHP script?
I am writing a small script that will executed as a cron job. Is there a way to understand if this script is called from a web server so that I could echo <br />
instead of newline character as output?