Solved

Best way to version PHP files (already using SVN)

Posted on 2009-05-19
2
163 Views
Last Modified: 2012-05-07
I am currently using SVN to version my PHP files, but that doesn't put any kind of reference in the file.  I am trying to find a piece of software or other practice that will append the version of the file within the project version into each file.  I have seen software using a system such as the code block I provided.  This would go at the top of each file.  Is there a way to create this automatically (automagically would be better) for each file?

Thanks!

/**

* Classname

* @version $Id: file.name.php 391 2009-02-22 11:53:16Z author $

* @package Package Name

* @copyright (C) year - year Company

* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL

* Extra Info

**/

Open in new window

0
Comment
Question by:termlimit
2 Comments
 
LVL 2

Accepted Solution

by:
estaticd earned 500 total points
ID: 24428834
0
 
LVL 4

Author Closing Comment

by:termlimit
ID: 31583374
That is exactly what I was looking for.  Thanks a lot for the quick reply.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now