<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Get Relative Path to Root Directory'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sun, 19 Apr 2026 13:20:26 +0000</lastBuildDate>
    <item>
      <title>blackhole12 said on 07/Jul/2009</title>
      <link>https://snipplr.com/view/16527/get-relative-path-to-root-directory</link>
      <description>&lt;p&gt;BUGFIX: &lt;code&gt;for($i=count($tempvar\_relpathdir); $i&gt;0; $i--)&lt;/code&gt;&#13;
should instead be &lt;code&gt;for($i=count($tempvar\_relpathdir)-1; $i&gt;0; $i--)&lt;/code&gt;&#13;
It actually works without this bugfix almost all of the time (which is odd because it technically shouldn't), but it'll spew out a notice when including one php file from another. This fixes that.&lt;/p&gt;</description>
      <pubDate>Tue, 07 Jul 2009 21:29:23 UTC</pubDate>
      <guid>https://snipplr.com/view/16527/get-relative-path-to-root-directory</guid>
    </item>
  </channel>
</rss>
