I work with files in PHP, using SplFileInfo and SplFileObject. But when I try to "re-open" the file, he cries out to me:
SplFileObject::__construct(filemame): failed to open stream: Permission denied
I think I have to close my file before re-opening, but I can not figure out how to do it. SplFile* have no function close ?!
source share