How To Get Subversion Revision ID From PHP

How To Get Subversion Revision ID From PHP

Note: This article will be emailed to your friend.

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 [...]

Read the rest of this article (90 words)

Please fill in the following fields

* - Required

Your Name: *

Your E-Mail: *

Your Remarks:

Friend's Name: *

Friend's E-Mail: *

Protected by Comment Guard Pro