note 89602 deleted from features.commandline by thiago

From: Date: Mon, 16 Mar 2009 12:42:13 +0000
Subject: note 89602 deleted from features.commandline by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-151988@lists.php.net to get a copy of this message
Note Submitter: silviacattani at vanylla dot it ---- Below is a simple Windows bat file to minify all php files in "tomin" folder and its subfolders. The result is accomplished by using the handy "php -w" option. REM Minifies all .php files found in tomin folder and in its subfolders FOR /r tomin %%X IN (*.php) DO (php -w "%%X" > "%%X.min") FOR /r tomin %%X IN (*.php) DO (DEL "%%X") FOR /r tomin %%X IN (*.min) DO (REN "%%X" "%%~nX") Save the above lines in a file called php-compressor.bat To minify a php project with many files in many subfolders, simply place everything in the tomin folder and run the bat file above by double clicking on it.

« previous php.notes (#151988) next »