<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Automatic SVN Revision number in source code</title>
	<atom:link href="http://dev.juokaz.com/php/automatic-svn-revision-number-in-source-code/feed" rel="self" type="application/rss+xml" />
	<link>http://dev.juokaz.com/php/automatic-svn-revision-number-in-source-code</link>
	<description>Random ideas, scripts and facts</description>
	<lastBuildDate>Mon, 29 Mar 2010 18:47:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jon</title>
		<link>http://dev.juokaz.com/php/automatic-svn-revision-number-in-source-code/comment-page-1#comment-3539</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Tue, 30 Jun 2009 07:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=59#comment-3539</guid>
		<description>this won&#039;t seem to work with any binary assets such as images.</description>
		<content:encoded><![CDATA[<p>this won&#8217;t seem to work with any binary assets such as images.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KC</title>
		<link>http://dev.juokaz.com/php/automatic-svn-revision-number-in-source-code/comment-page-1#comment-3110</link>
		<dc:creator>KC</dc:creator>
		<pubDate>Tue, 16 Jun 2009 19:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=59#comment-3110</guid>
		<description>The approach &quot;style.css?revision_id&quot; won&#039;t work well as having query string like this will make the css not cachable.  On the other hand, if the file name looks like &quot;style.1234.css&quot; where the 1234 is the rev number, it would work.  Again, some sort of mod_rewrite might have to be in place to point the css file back to its original form &quot;style.css&quot;.</description>
		<content:encoded><![CDATA[<p>The approach &#8220;style.css?revision_id&#8221; won&#8217;t work well as having query string like this will make the css not cachable.  On the other hand, if the file name looks like &#8220;style.1234.css&#8221; where the 1234 is the rev number, it would work.  Again, some sort of mod_rewrite might have to be in place to point the css file back to its original form &#8220;style.css&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juozas</title>
		<link>http://dev.juokaz.com/php/automatic-svn-revision-number-in-source-code/comment-page-1#comment-2358</link>
		<dc:creator>Juozas</dc:creator>
		<pubDate>Wed, 20 May 2009 22:24:56 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=59#comment-2358</guid>
		<description>In my opinion, best way is to have build system, which adds version numbers where needed :) This is kind of a hack...

Currently I&#039;m using filemtime($file) as file version - works well.</description>
		<content:encoded><![CDATA[<p>In my opinion, best way is to have build system, which adds version numbers where needed :) This is kind of a hack&#8230;</p>
<p>Currently I&#8217;m using filemtime($file) as file version &#8211; works well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian West</title>
		<link>http://dev.juokaz.com/php/automatic-svn-revision-number-in-source-code/comment-page-1#comment-2348</link>
		<dc:creator>Ian West</dc:creator>
		<pubDate>Wed, 20 May 2009 16:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=59#comment-2348</guid>
		<description>It seems like quite an expensive operation to do.  Why not just check the modified time of the file instead and append that?</description>
		<content:encoded><![CDATA[<p>It seems like quite an expensive operation to do.  Why not just check the modified time of the file instead and append that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomaszs wrzucił link na Flakera &#124; flaker.pl</title>
		<link>http://dev.juokaz.com/php/automatic-svn-revision-number-in-source-code/comment-page-1#comment-1268</link>
		<dc:creator>tomaszs wrzucił link na Flakera &#124; flaker.pl</dc:creator>
		<pubDate>Sun, 19 Apr 2009 16:45:20 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=59#comment-1268</guid>
		<description>[...] tomaszs: wrzucił link na Flakera przez API   przed chwilą    Ciekawy litewski blog w języku angielskim dev.juokaz.com/...ic-svn-revision-number-in... [...]</description>
		<content:encoded><![CDATA[<p>[...] tomaszs: wrzucił link na Flakera przez API   przed chwilą    Ciekawy litewski blog w języku angielskim dev.juokaz.com/&#8230;ic-svn-revision-number-in&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juozas</title>
		<link>http://dev.juokaz.com/php/automatic-svn-revision-number-in-source-code/comment-page-1#comment-39</link>
		<dc:creator>Juozas</dc:creator>
		<pubDate>Sun, 15 Feb 2009 17:02:23 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=59#comment-39</guid>
		<description>Difference is this:
function will return different number only when you change style.css. 

Numbers will not be in sequence, and can be like: 10,23,4345,etc., but still they will change ONLY when style.css is changed. This is what I what.

Yes, having version.php is usefull because you always can have all sorts of information, but you need to commit it every time. And I better choose to create a build script (phing or similar) than lie for SVN :)</description>
		<content:encoded><![CDATA[<p>Difference is this:<br />
function will return different number only when you change style.css. </p>
<p>Numbers will not be in sequence, and can be like: 10,23,4345,etc., but still they will change ONLY when style.css is changed. This is what I what.</p>
<p>Yes, having version.php is usefull because you always can have all sorts of information, but you need to commit it every time. And I better choose to create a build script (phing or similar) than lie for SVN :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob T.</title>
		<link>http://dev.juokaz.com/php/automatic-svn-revision-number-in-source-code/comment-page-1#comment-38</link>
		<dc:creator>Rob T.</dc:creator>
		<pubDate>Sun, 15 Feb 2009 16:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=59#comment-38</guid>
		<description>&gt; yep, your solutions works, but Revision number in version.php changes only when you commit it. Is it really what you want?

Why is that any different than setting the SVN revision in CSS as you posted?

Ok how about this, Version.PHP could contain the SVN rev constant as above, plus can have file or directory modification time in another.</description>
		<content:encoded><![CDATA[<p>&gt; yep, your solutions works, but Revision number in version.php changes only when you commit it. Is it really what you want?</p>
<p>Why is that any different than setting the SVN revision in CSS as you posted?</p>
<p>Ok how about this, Version.PHP could contain the SVN rev constant as above, plus can have file or directory modification time in another.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juozas</title>
		<link>http://dev.juokaz.com/php/automatic-svn-revision-number-in-source-code/comment-page-1#comment-37</link>
		<dc:creator>Juozas</dc:creator>
		<pubDate>Sun, 15 Feb 2009 16:35:13 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=59#comment-37</guid>
		<description>Hi Rob,

yep, your solutions works, but... Revision number in version.php changes only when you commit it. Is it really what you want?</description>
		<content:encoded><![CDATA[<p>Hi Rob,</p>
<p>yep, your solutions works, but&#8230; Revision number in version.php changes only when you commit it. Is it really what you want?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob T.</title>
		<link>http://dev.juokaz.com/php/automatic-svn-revision-number-in-source-code/comment-page-1#comment-36</link>
		<dc:creator>Rob T.</dc:creator>
		<pubDate>Sun, 15 Feb 2009 16:31:33 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=59#comment-36</guid>
		<description>Why go to the trouble of trying to parse the revision from the CSS file, when you could just do something like

version.php
&lt;?
MY_VERSION = &quot;$Rev: $&quot;

and set the svn property on that?   If any other php needs the version, version.php can be required().

Hope This Helps,
--Rob T.</description>
		<content:encoded><![CDATA[<p>Why go to the trouble of trying to parse the revision from the CSS file, when you could just do something like</p>
<p>version.php<br />
&lt;?<br />
MY_VERSION = &#8220;$Rev: $&#8221;</p>
<p>and set the svn property on that?   If any other php needs the version, version.php can be required().</p>
<p>Hope This Helps,<br />
&#8211;Rob T.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juozas</title>
		<link>http://dev.juokaz.com/php/automatic-svn-revision-number-in-source-code/comment-page-1#comment-8</link>
		<dc:creator>Juozas</dc:creator>
		<pubDate>Tue, 10 Feb 2009 12:10:43 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=59#comment-8</guid>
		<description>Yeah, it&#039;s a revision number for whole project, but Rev Id in style.css only updates then you commit it.

Yes, Rev Id numbers in file will not be sequential, but my solution still works: style.css?ID changes only after style.css commit ( - change).</description>
		<content:encoded><![CDATA[<p>Yeah, it&#8217;s a revision number for whole project, but Rev Id in style.css only updates then you commit it.</p>
<p>Yes, Rev Id numbers in file will not be sequential, but my solution still works: style.css?ID changes only after style.css commit ( &#8211; change).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
