php - file_put_content create file if not exist? -
$ html = file_get_contents ('http://www.test.com); $ file = '/Applications/MAMP/htdocs/test.html'; file_put_contents ($ फ़ाइल, $ एचटीएमएल); क्या file_put_content file.txt फ़ाइल बनाते समय फाइल मौजूद नहीं है?
हां।
के अनुसार:
अगर फ़ाइल का नाम मौजूद नहीं है, तो फ़ाइल बनाई गई है।
Comments
Post a Comment