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