Trace redirect loop
- by Michel Krämer
I have a large PHP application. After I changed some settings I get a redirection loop (i.e. the browser is redirected to the same page over and over again).
The problem is that I don't know which command (which line in which PHP file) in this application causes the redirect. Is there a way to trace calls to the header() function? Or - even better - is there a way to trace redirects in PHP?
Thanks in advance,
Michel