Home > Backend Development > PHP Tutorial > Zend Studio Tips: Automatically Generate Version Information_PHP Tutorial

Zend Studio Tips: Automatically Generate Version Information_PHP Tutorial

WBOY
Release: 2016-07-21 14:55:56
Original
735 people have browsed it

When viewing some PHP source code, you can often see some very standard comment information
$Id: Database.php 4343 2009-05-08 17:04:48Z jheathco $
This The information includes the file name, SVN version, submission date, and author. So how is this information generated? Today I finally discovered it. It turns out to be an auto-props function provided by SVN.

In the Zend Studio 6.1.2 we use, right-click the project checked out from SVN, select Team->set keyword, and then select ID, thus opening SVN’s auto-props Function.
Next, as long as we add $Id$ to the PHP file we write, when submitting to SVN, the client will automatically replace this with the standard format above. How about it? It feels very convenient.

In addition, there are several other properties that can be set, namely: LastChangedDate, LastChangedRevision, LastChangedBy, HeadURL.

Using this function, when we write our own code, we can generate file information in a unified format without having to maintain it manually.

Reprinted from: http://www.cnblogs.com/cocowool/

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/364306.htmlTechArticleWhen viewing some PHP source code, you can often see some very standard comment information $Id: Database.php 4343 2009-05-08 17:04:48Z jheathco $ This information includes the file name, S...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template