0
如何使用Ant在目錄中執行每個 php文件? php執行的輸出應該覆蓋原始文件。Ant:如何用php文件調用目錄並將結果保存爲覆蓋文件
該目錄是在安裝php的localhost web服務器上。我假設解決方案將涉及GET並且src指向每個文件的http等價物。
一些動態版本的
C:/webroot/php/file1.php
C:/webroot/php/file2.php
轉化爲
GET SRC =「本地主機/ PHP /文件1。 php「
get src =」localhost/php/file2.php「
然後讓輸出覆蓋本身。
對於另一個用戶來說,這可能是一個好方法。我正在尋找一種通過XAMPP Web服務器通過Get獲取的方法。 – Pelle
@Pelle更新了答案 –