Date: 01/24/07 (Java Web) Keywords: php First of all identify the file(s) for which you want to know the revision number from PHP. Then add a property to the file as follows: svn propset svn:keywords Revision file_name.php Now add the following function within php blocks: /** Returns revision number */ function getSCID() { $svnid = '$Rev: 43 $'; $scid [...] Source: http://blog.taragana.com/index.php/archive/how-to-get-subversion-revision-id-from-php/
|