fopen & relative path
<p>I'm wirtting simple output buffering cache engine.</p>

<p>Here is the excerpt of the code that get me in trouble:</p>

<pre><code>//...

function cache_page($content) {
    $handle = fopen('./folder/cache_file','w');
    //...
}

//...

ob_start('cache_page');
</code></pre>

<p>The strange thing is that when i use relative path like './folder/cache_file' fopen fails returning false. When using full path like 'C:/foilder/cache_file' or just the file name 'cache_file' everything works great.</p>

<p>This problem seems bo be related whith ob_start handler function call (cache_page in this case), of course when i put <code>$handle = fopen('./folder/cache_file','w')</code> somewhere else for example just after ob_start fopen succeeds with relative path above.</p>
