title: Calling PHP script from cron - does echo cause errors?
body: <p>I have a PHP script that I use to perform maintenance tasks on a website.
  I use a cron to execute it every X hours but I would also like to have it as an option if the site admin wants to run it manually. In order to make it admin friendly, at the end it should display the results in the browser by echoing various messages.</p>
  
  <p>Question is, does it matter if the script echoes out the results when ran in a cron or will it cause errors? Should it only output to the browser when executed by the admin? Is there a way to tell when a script is executed in a browser and when from a cron?</p>
  
  <p>Thanks.</p>