I run file_get_contents() inside the loop, I see a lot of files open in the Apache log. I do not know the reasons for this. Do I need to close the file_get_contents() function after each read?
file_get_contents()
file_get_contents() reads the file and then closes the file. It returns the read data or false , so you do not have a file descriptor for use with fclose() , anyway.
false
fclose()
Source: https://habr.com/ru/post/956919/More articles:Avoid multiple calls to the same function when expanding a composite result - sqliOS - adding horizontal strip to table cells - iosHow can I avoid the format string? - pythonFSharpChart.SaveAs () keeps a blank image if it is called before the chart is completed rendering - f #User request for input using boxen - puppetHeckel ternary operator - ternary-operatorWhat does a hashmap check do when calling containsKey ()? - javaHow to build several markers, as well as build a route between two points? - google-maps-api-3Ubuntu shortcuts disturbing my fast PHP Storm shortcuts - phpGrouped UITableView and horizontal fields - iosAll Articles