Simple questions to someone who was real-life php experience
Under php4 and IIS 5, what happens when multiple sessions/executions of a php script try to read the same file? In a program I am writing, the files are locked (flock(name, typeOfLock)) when read and unlocked when done. If two try to read, will php simply put holds on the later reading (each file read will take I doubt take a measurable amount of time).
Furthor more, what will happen if suddenly an administrator where edit the file (through php)
Would using MySQL over text files be a better idea?
Thanks
SirNuke
Under php4 and IIS 5, what happens when multiple sessions/executions of a php script try to read the same file? In a program I am writing, the files are locked (flock(name, typeOfLock)) when read and unlocked when done. If two try to read, will php simply put holds on the later reading (each file read will take I doubt take a measurable amount of time).
Furthor more, what will happen if suddenly an administrator where edit the file (through php)
Would using MySQL over text files be a better idea?
Thanks
SirNuke