Quote:
Originally Posted by Yashas
This is terrible.
The fopen should be moved out. Why open and close a file for every chat message?
This will cause a lot of I/O blocking and take a big toll on the performance. The server is forced to wait until the I/O request is cleared.
|
This tutorial is very old and of course not good, the guy just bumped it unnecessarily. There are way pretty much efficient tutorials other than that one.