121-File_put_contents_&_File_get_contents,same as fopen, but it is fast
21
13
17
This is testing text.The new text.Another new text.
This is testing text.The new text.An
<?php/* -------121-File_put_contents_&_File_get_contents,same as fopen, but it is fast --------*/echo"</br><h7 class='myheading'>121-File_put_contents_&_File_get_contents,same as fopen, but it is fast </h7></br>";echofile_put_contents("readme.txt","This is testing text.")."<br><br>";// echo return # of characters, write data echofile_put_contents("readme.txt","The new text.",FILE_APPEND)."<br><br>";//------- with MODE parametersechofile_put_contents("readme.txt","Another new text.",FILE_APPEND|LOCK_EX)."<br><br>";// use for lock the file while editing , hacker proof,/* -------File Gets Content Function----Reads a file into a string -------*/echofile_get_contents("readme.txt")."<br><br>";// ( file name,path, context, start,max length ) echofile_get_contents("readme.txt",FALSE,NULL,0,36)."<br><br>";//always false, ?>