We are having issues with our site, and I have to put some logging into place to track variables. I have been beating my brains out on the issue all morning and every time I think I'm getting somewhere I hit a dead end with the solution, and it fails to take all considerations into account.
Basically it's dynamic pages with multiple includes, and I want to do a var dump to a file, without using output buffering if at all possible. The closest native php function I have found so far is var_export(get_defined_vars(), true);, but that seems to only dump the variables from the included file. Am I missing something? Are there any pre-defined packages with this functionality that I am not finding? Any advice or guidance will be greatly appreciated.
Basically it's dynamic pages with multiple includes, and I want to do a var dump to a file, without using output buffering if at all possible. The closest native php function I have found so far is var_export(get_defined_vars(), true);, but that seems to only dump the variables from the included file. Am I missing something? Are there any pre-defined packages with this functionality that I am not finding? Any advice or guidance will be greatly appreciated.