I have a php web application that I am doing some testing on. This application is running on a Freebsd host. In the application directory, I have several .php files that I am not sure what/when they are used. Is there a way it log when this .php file is accessed by the application, and what arguments are passed to it, when it is used?
Share
Sure. You can just put an error_log() call at the beginning of each file, assuming that you have accessing to whatever logs they will be written to (typically webserver error logs).
That will log the file being accessed, and and export of the Request superglobal so you know what is in GET, POST, and COOKIE.