Revision: 6925
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 24, 2008 19:44 by zingo
Initial Code
<?php if (!defined('REVISION')) { $svn = file(APP . '.svn' . DS . 'entries'); if (is_numeric(trim($svn[3]))) { $version = $svn[3]; } else { // pre 1.4 svn used xml for this file $version = explode('"', $svn[4]); $version = $version[1]; } unset ($svn); define ('REVISION', $version); unset ($version); } ?>
Initial URL
http://bakery.cakephp.org/articles/view/using-your-application-svn-revision-number
Initial Description
Initial Title
Using the svn revision number in cakePHP application
Initial Tags
svn, cakephp
Initial Language
PHP