note 89602 added to features.commandline

From: Date: Mon, 16 Mar 2009 10:42:36 +0000
Subject: note 89602 added to features.commandline
Groups: php.notes 
Request: Send a blank email to php-notes+get-151986@lists.php.net to get a copy of this message
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. ---- Server IP: 213.92.11.19 Probable Submitter: 87.6.56.209 ---- Manual Page -- http://www.php.net/manual/en/features.commandline.php Edit -- https://master.php.net/note/edit/89602 Del: integrated -- https://master.php.net/note/delete/89602/integrated Del: useless -- https://master.php.net/note/delete/89602/useless Del: bad code -- https://master.php.net/note/delete/89602/bad+code Del: spam -- https://master.php.net/note/delete/89602/spam Del: non-english -- https://master.php.net/note/delete/89602/non-english Del: in docs -- https://master.php.net/note/delete/89602/in+docs Del: other reasons-- https://master.php.net/note/delete/89602 Reject -- https://master.php.net/note/reject/89602 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151986) next »