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

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

WBOY
WBOYOriginal
2016-06-13 12:35:20864browse

PHP的fwrite能并发执行?


$f2 = fopen('file/index.txt','w');
fwrite($f2,$h.$old);
fclose($f2);


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

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


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

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