Home > Backend Development > PHP Tutorial > PHP的fwrite能并发执行?该如何解决

PHP的fwrite能并发执行?该如何解决

WBOY
Release: 2016-06-13 12:35:20
Original
958 people have browsed it

PHP的fwrite能并发执行?

<br />
$f2 = fopen('file/index.txt','w');<br />
fwrite($f2,$h.$old);<br />
fclose($f2);
Copy after login


例如: 制作留言板. 没有使用MySQL等软件. 直接把留言写入一个.txt文件里.

如果在高峰时期, 同一秒内有50,000人留言. 
www.dbscripts.net/guestbook/demo/


PHP能并发执行, 不会出错?

Related labels:
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template