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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -