title: file_put_contents path question
body: <p>I want to create html page using php code form <code>c:\www\test\script\new\creat_html.php</code> to <code>c:\www\test\html\index.html</code>.</p>
  
  <p>Now in <code>c:\www\test\script\new\creat_html.php</code> how do I set the path?</p>
  
  <p>I use <code>dirname(__FILE__)</code>, but it just gets the parent path. How to? Thanks.</p>
  
  <pre><code>file_put_contents( dirname(__FILE__) . '/index.html', $html);
  </code></pre>