Windows批处理文件执行PHP访问mySQLi数据库

I am writing a windows batch file that needs to execute a PHP file which fetches data from a backend and inserts into mysql database.

Below is the code I used and it is working but it will open the browser.

@ECHO OFF
START http://localhost/test.php

How do I ensure that the browser is not invoked when START is executed? I have tried to put /B at the back but it not working.

I have also tried the following but it is not working at all and nothing gets inserted.

@ECHO OFF
php.exe -f "C:\wamp\www\test.php"

Thanks In Advance

The simple answer is that php files are set up to open with your default browser, when you open the php file, it will open with that browser.

If you want to view the contents of the file in cmd instead you can use

type test.php