myAdBanner

2022年6月12日 星期日

windows 系統排程執行PHP程式

 步驟如下:

1. 下載 wget.exe 程式

https://eternallybored.org/misc/wget/

2. 將 wget.exe 複製到 C:\windows 資料夾內

3.  撰寫 bat 檔

autorun.bat 內容如下:

--------------------

C:\xampp\php>c:\windows\wget.exe -q http://localhost/autorunl.php

-------------------

參數說明:

-q 不會輸出執行結果

4.排程執行 autorun.bat