Solved

Best way to version PHP files (already using SVN)

Posted on 2009-05-19
2
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Simple function not working 7 44
issue with DB import 1 36
Google Dork query 7 66
PHP Underscores vs. Directory separators 5 28
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 …
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

749 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