Jump to content


Photo

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


  • Please log in to reply
3 replies to this topic

#1 Dagorlad

Dagorlad
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 27 October 2006 - 02:28 AM

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.

#2 btherl

btherl
  • Staff Alumni
  • Advanced Member
  • 3,893 posts
  • LocationAustralia

Posted 27 October 2006 - 02:31 AM

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.

#3 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 27 October 2006 - 07:03 AM

If you fanacy creting a cvs system for your codes then heres a tutoral for you.

good luck.

redarrow.

http://www.linux.ie/...torials/cvs.php
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#4 Dagorlad

Dagorlad
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 28 October 2006 - 12:43 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users