Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

info at the top of every file, what is it?


stevebob

Recommended Posts

Posted

Just curious, what is the info at the top of every file? It's the commented section, more specifically it's this line:

 

$Id: checkout_confirmation.php 1739 2007-12-20 00:52:16Z hpdl $

 

It looks like version information, does it play into the operation of the site at all?

Posted

Bob,

 

 

It is simply the file version identifier

 

 

 

 

Chris

Posted

Just curious, what is the info at the top of every file? It's the commented section, more specifically it's this line:

 

$Id: checkout_confirmation.php 1739 2007-12-20 00:52:16Z hpdl $

 

It looks like version information, does it play into the operation of the site at all?

Notice that the line is inside the top comment block, therefore it has no effect at all on the operation of the site.

 

/*

$Id: checkout_confirmation.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

I also just noticed that it is identical to mine! Must be when they compiled the final version.

Posted

The files are kept in some sort of source control repository, and when "checked out" to incorporate into an install package, get "stamped" with the name, date, time, version number, etc. SOP for any large project. As mentioned, it's in a comment block, so it's just human readable information, and doesn't affect operation. Actually, I think the update check may read that information to see what version you're at, but I won't swear to it.

 

The rest of the information is boilerplate for the author/owner, license, etc. The copyright year is usually wrong (1, they fail to use the legally required first-year, last-year format, and 2, they rarely update the last-year date, which should be done every time this particular file changes -- some code repository systems should be able to do that for you).

Archived

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

×
×
  • Create New...