I have a large PHP application and I’m looking for a way to know which PHP script is running at a given moment. Something like when you run “top” on a Linux command line but for PHP.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you trying to do so from within the PHP application, or outside of it? If you’re inside the PHP code, entering
debug_print_backtrace();at that point will show you the ‘tree’ of PHP files that were included to get you at that point.If you’re outside the PHP script, you can only see the one process that called the original PHP script (index.php or whatnot), unless the application spawns parallel threads as part of its execution.