I have a standard web app written in PHP. I am using nginx with php-fpm.
Lets say public/index.php
is my entry point and during a single request 25 files are being autoloaded.
Can I get a list of these files using some lsof
or other command (I do want to use some unix command, not PHP code)?
Background:
I have some messy legacy app and there is no obvious way to find file (controller) that is used on particular page. Just for fun I wondered if I can run some lsof
-ish command, reload the page and get what file has been accessed from /my/project/some/nested/directory/containing/controllers
.