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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -