關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • 檢查大量 PHP 檔案語法

    Posted on May 25th, 2006 Sam Tang 1 comment

    如果想一次過檢查多個 php 副檔名的檔案是否有 parse error,可以用以下指令:

    find ./ -type f -name \*.php -exec /usr/local/php/bin/php -l {} \;

    請將以上的 /usr/local/php/bin/php 改成你伺服器內 php 執行檔的位置。


     

    One response to “檢查大量 PHP 檔案語法”

    1. [...] 檢查大量 PHP 檔案語法 (tags: Tech WebDev PHP Tips) [...]

    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word