Is it possible to prevent a PHP script opening a new tab?

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.

PHP have php.exe file what can run as command line. Let 's open command prompt in Windows then “cd” to the location of php.exe and execute this command

php.exe mullbed2/control/localUpdate.php

It will execute the php file, you can add to Windows Schedule Task to do it timely

Thank you, David.

I thought it might be something like that, but hadn’t realised php.exe was all I needed. I’m going to assume that PHP will know it’s in the server environment, and that I won’t have to provide a full path to ‘localUpdate.php’, so it will look like this:

c:\\SERVER\\PHP\\php.exe mullbed2/control/localUpdate.php

However, the full path is easily provided if needed (it’s on a different virtual drive)…
I may have got the slashes going the wrong way, but that will quickly come to light.