// Find the SVN revision number
function findSVNrevision($svn_dir)
{
// No file, forget it.
// Open the file, read it and close it.
$opened_file =
fopen($svn_dir .
'/.svn/entries',
"r");
$junk =
fread($opened_file,
13);
// Pull out the revision
// If it fails.. I guess we get out.
// woohoo!
return $match[1];
}