Jump to content

Archived

This topic is now archived and is closed to further replies.

Dagorlad

Would like to understand what $Id and exp are all about

Recommended Posts

I see this often in open source scripts, but am at a loss to understand what it is for or how it is used:

/*
  $Id: page_header.php,v 1.106.2.25 2005/10/30 15:17:14 acydburn Exp $
*/

Can someone explain its purpose please? Many thanks.

Share this post


Link to post
Share on other sites
This is used by various version control systems, such as CVS, RCS and SVN.  It tells you what version of the file you have, when it was last updated, and who did the update (acydburn updated that file most recently).

It's very useful information for developers, since it helps them keep track of code changes, and let's them know exactly which version of the code they are looking at.

Share this post


Link to post
Share on other sites
If you fanacy creting a cvs system for your codes then heres a tutoral for you.

good luck.

redarrow.

http://www.linux.ie/articles/tutorials/cvs.php

Share this post


Link to post
Share on other sites
Thank you both for the help. I had assumed it was some kind of version control system, since the filename, version, date and author were all listed in the expression, but I was unable to see how it would work.

It makes perfect sense now. Thanks again.

Share this post


Link to post
Share on other sites

×

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.