voiciXs notes

Menu

Skip to content
  • Home

PHP command line syntax check

Leave a reply
  • http://php.net/manual/en/features.commandline.php
php -l file.php

Check all PHP files in the current directory

for i in *.php; do php -l $i; done

Check all PHP files in the current directory and all subdirectories

find . -name \*.php -exec php -l "{}" \;
This entry was posted in linux, php on October 21, 2010 by admin.

Post navigation

← find Easy replace php short open tags with long php open tags →

Categories

  • ajax (2)
  • apps (9)
  • blogroll (15)
  • games (2)
  • html (3)
  • javascript (3)
  • jquery (1)
  • lazarus (2)
  • linux (3)
  • mysql (11)
  • pascal (4)
  • php (24)
  • poker (2)
  • Sublime Text (2)
  • Uncategorized (1)
  • web (4)
  • win (4)

Archives

blogroll

  • Google Analytics

Tags

Add new tag ajax apps class clodedrive constants delete delphi embedded firebird freepascal games html ip javascript lazarus mysql operators pascal php PHP_AUTH_PW PHP_AUTH_USER poker royal flush sql sublime tada type template ternary text editor trigger username Variables virtual cd web win
Proudly powered by WordPress