ZendStudio tips: Automatically generate version information. When viewing some PHP source code, you can often see some very standard comments $ Id: Database. php43432009-05-0817: 04: 48 Zjheathco $ This information includes the file name, S in viewing some PHP source code, often can see some very standard comment information
$ Id: Database. php 4343 17: 04: 48Z jheathco $
This information includes the file name, SVN version, submission date, and author. how is this information generated? today, we finally found out that, it turns out to be an auto-props function provided by SVN.
In Zend Studio 6.1.2, right-click the Project checked out from SVN, choose Team> set keyword, and select ID, in this way, the SVN auto-props function is enabled.
Next, as long as we add $ Id $ to the prepared php file, when submitting SVN, the client will automatically replace this with the above standard format. how is it convenient.
In addition, several other attributes can be set: LastChangedDate, LastChangedRevision, LastChangedBy, and HeadURL.
With this function, when writing our own code, we can generate file information in a unified format without manual maintenance.