We help IT Professionals succeed at work.
Get Started

current buffer

tonelm54 asked
Last Modified: 2015-03-11
Im writing a debug function, which I want to collect as much information as possible to debug a site which is having some trouble (but cant find out whats happening as the issue is intermittent).

To troubleshoot I want to see what is happening, so going to record a users path through the website and then when the error occurs I can trace back and look at whats going on.

What I would really like to do is actually record the HTML sent to the user. Is this possible to capture into a string without having to change all my echo and prints to a string?

Im using the php function 'register_shutdown_function' to record all this information, so Im hoping the buffer is stored somewhere.

Any advise?

Thank you
Watch Question
Most Valuable Expert 2011
Author of the Year 2014
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE