file_put_content create file if not exist?
php
Solution
yes.
as per php documentation:
If filename does not exist, the file is created.
Problem
``` $html = file_get_contents('http://www.test.com); $file = '/Applications/MAMP/htdocs/test.html'; file_put_contents($file,$html); ``` Does file_put_content create the file test.html when file doesn't exists?