Jump to content

Recommended Posts

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 :D

Link to comment
https://forums.phpfreaks.com/topic/56861-what-is-this-id-thing/
Share on other sites

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 ;D

 

~ Chocopi

Link to comment
https://forums.phpfreaks.com/topic/56861-what-is-this-id-thing/#findComment-280939
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/56861-what-is-this-id-thing/#findComment-280955
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.