I make a php forum. Do you know what will happend if two people at the same time use function fopen()? One of them will fail? If yes how can I avoid this? And is there any chance to do this (to avoid the problem)?
I think multiple can open a file for reading, but the problem is when multiple people are reading and writing... You want to lock the file using flock() get its details on php.net
Thanks Luke you save me again
If you expect any volume of writing at all, consider using a dbms instead of writing to files. A dbms (any dbms) has all the support you need for dealing with multiuser contention already built in.