I have 100 workers. I am writing workload data in file, but I don't want the size of a file to be greater than XMB, so I usee filesize to check the size of file.
Is there any performance degrade of server while using php filesize()
function?
I m using below logic to check
if (filesize($file) > 20MB){
echo "create new file and write data in that file";
}