GuitarGod Posted June 23, 2007 Share Posted June 23, 2007 I'm creating some PHP powered software, and on a lot of other PHP powered software, there is something like this in the header: /* $Id: gtk.php,v 1.41 2002/04/11 02:19:50 andrei Exp $ */ Could somebody explain what this means, and do I have to include in it MY headers too? I know that gtk.php is the filename, and perhaps v 1.41 - by the way, how do i know the version on my file? Does it go by how many times it has been modified? Is there some sort of system for it? Is the date the last time/date the file was modified or created, and what does the Exp $ mean? If anyone could shed some light on this, it'd be much appreciated Quote Link to comment https://forums.phpfreaks.com/topic/56861-what-is-this-id-thing/ Share on other sites More sharing options...
chocopi Posted June 23, 2007 Share Posted June 23, 2007 well seeing as it is between /* and */ that means it is a comment, and no you do not have to include it. I am guessing this if from open source code so this line just gives a bit of information about the file. So /* = start of comment $Id: = 'Id' as it is the id of the file abd i guess it has been declared like a variable for indexing ? gtk.php = file name v 1.41 = version of file 2002/04/11 02:19:50 = date and time created andrei = user who created the file Exp $ = ?? */ = end of comment I think thats roughly right, but dont take my word for it ~ Chocopi Quote Link to comment https://forums.phpfreaks.com/topic/56861-what-is-this-id-thing/#findComment-280939 Share on other sites More sharing options...
GuitarGod Posted June 23, 2007 Author Share Posted June 23, 2007 Cheers! How do i go about determining the version of the file? Quote Link to comment https://forums.phpfreaks.com/topic/56861-what-is-this-id-thing/#findComment-280952 Share on other sites More sharing options...
chocopi Posted June 23, 2007 Share Posted June 23, 2007 well its personal chocie really, of what i know x.y.z x = major releases/changes y = minor releases/changes z = very minor releases if you take a site like phpbb they use this It uses the X,Y,Z versioning system. X = Complete re-done codebase.. (IE: 1.4.X to 2.0.X), Y = Major coding changes but, none to the core codes. (In this case, 2.0.X to 2.1.X but, odd numbers are strictly DEV and even numbers are releases), Z = patches, bug fixes, security fixes and such. Hope that helps, ~ Chocopi Quote Link to comment https://forums.phpfreaks.com/topic/56861-what-is-this-id-thing/#findComment-280955 Share on other sites More sharing options...
AndyB Posted June 23, 2007 Share Posted June 23, 2007 You decide. This will help -> http://en.wikipedia.org/wiki/Software_versioning Quote Link to comment https://forums.phpfreaks.com/topic/56861-what-is-this-id-thing/#findComment-280956 Share on other sites More sharing options...
GuitarGod Posted June 23, 2007 Author Share Posted June 23, 2007 Cheers guys! You've helped more than you know I've been searching for these answers nearly all day. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/56861-what-is-this-id-thing/#findComment-280959 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.