Under Windows cmd, you can execute PHP files by Php.exe, and then write the command to bat to execute it regularly, probably more reliably than the browser's timed refresh.
The path to the Php.exe and the path to the PHP file to execute (code below):
D:program Fileswampbinphpphp5.4.6php.exe D:program fileswampwwwphpinfo.php
Saved as a bat file, you can take advantage of the scheduled tasks of Windows to execute regularly. The operation of Php.exe under CMD can be viewed at any time using the-H parameter.
>> execute PHP or refresh on Windows Server with the system's own task plan and bat matching or borrowing a specific browser to implement
Method One:
Task planning and Bat Matching
1. Add a scheduled task or write your own script in a dream background.
2. Create a new text document fill in the Bat Script command and modify the txt extension to bat.
The content format is as follows:
@echo off
REM Shutdown echo
Start C: "Program Files" "Internet Explorer" Iexplore.exe http://www.skyhome.cn
REM Opens the URL address using the browser
Ping 127.1-n >nul
Taskkill/im chrome.exe/f
rem 10 seconds (in seconds) after the end of the Chrome.exe process closes the browser (the default browser is chrome that opens with chrome)
3. Use the Winows Self-planning task tool to execute BAT scripts on a regular basis as needed.