I’m having a problem where my script is redirecting to a location using header(). However, it’s a headache to debug this since I have so many functions that send headers. Is there any debug feature in PHP that allows me to follow the headers? Thanks
I’m having a problem where my script is redirecting to a location using header()
Share
No, a quick way would be to install APD and replace/hook the header function
take a look at the
override_functionit would permit to define your ownheaderfunction with some logging.a brute force solution would be also to replace all the
header(byheader2(for example so you can write your own function with some trace.Warning: don’t do this on your production machine because APD have a big performance impact.