
當我從終端機執行 runSheduledTasks.php 時,發生了類似「無法開啟輸入檔:runSheduledTasks.php」的錯誤,請給予刪除此錯誤的建議。
答案1
1)安裝php5-cli
2) 確保您的 .php 檔案以
#!/usr/bin/php
3) 確保您的文件是可執行的。
chmod +x file.php
4)現在你應該能夠運行這個文件,例如
./file.php
當我從終端機執行 runSheduledTasks.php 時,發生了類似「無法開啟輸入檔:runSheduledTasks.php」的錯誤,請給予刪除此錯誤的建議。
1)安裝php5-cli
2) 確保您的 .php 檔案以
#!/usr/bin/php
3) 確保您的文件是可執行的。
chmod +x file.php
4)現在你應該能夠運行這個文件,例如
./file.php