Add new function to detect if script are running on command-line environ...

Hey guys, running the script via command-line I've noticed that the HTML output are showed as well. On searchreplacedb2cli.php you put a line with the text "############# Ignore Above ###############".

I think that we can detect if the script is running on command-line environment to remove the HTML output, without affect the main workflow of the script.

For these reason, I've forked the repo, made my change and set a new pull request, just to review if you consider this a good change to do over the script.

Any questions, please let me know.