Home  >  Article  >  Backend Development  >  Application of PHP - Complete Manual for Chat Room Development (2)_PHP Tutorial

Application of PHP - Complete Manual for Chat Room Development (2)_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 17:33:29696browse


Now we finally have everything we need to write a new file:

(as the current mainstream development language)

// Open the file, And truncate the file length to 0
 $open_file = fopen("messages.html", "w");
 
 //Write the header information of the file
 fputs($open_file, $header );
 
 // New line
 // (Use stripSlashes, because we don’t want all the escape characters to appear in the message file) ;

// Close the file
fclose($open_file);

?>





http://www.bkjia.com/PHPjc/508609.html

www.bkjia.com

true

http: //www.bkjia.com/PHPjc/508609.htmlTechArticleNow we finally have everything we need to write new files: (as the current mainstream development language) // Open the file and truncate the file length to 0 open_file = fopen("messages.html"...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn