I have a complex web application, which reads and writes a myriad of files (xml, css, js, jpg etc.). For cleaning up purposes, in a shutdown function I want to log the filenames which were read (and written) using one of the various file methods in PHP, e.g. fread(), file_get_contents(), readfile() and whatever.
I couldn't find a similar approach like get_included_files() and I'm quite sure there is no simple method to achiveve that. But does somebody know of a probably more complex logic?