I’m looking for a way to prevent a PHP script from opening a blank tab in my browser every time it’s run. I’m using Windows Task Scheduler to run the script with this action:
"C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe" mullbed2/control/localUpdate.php
While I was developing the script it was handy to have some ‘echo’ statements on screen, but now that I’m happy that it just runs every four hours I’d rather it didn’t pop up a blank tab in my browser each time.There’s no HTML in the script.
The script is accessing some remote files and updating a local MySQL database. Hence the use of PHP (and I am not versed in any ‘C’ programs). It seems I have to call the browser, as calling the php script alone just opens it in my editor. I don’t mind the browser being opened, it’s generally open anyway. I do want to avoid the opening of a new tab every time the script runs. If I could achieve that I’d run it more often.
From what I’ve read it seems it may be possible to run PHP in a command line mode, and perhaps this would enable me not to have to call the browser at all ?
I have an Apache server installed in Win7 (64) OS.