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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 17:33:29
Original
746 people have browsed it


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"...
source:php.cn
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template