How can I get PHP to display the headers it received from a browser?


Question

Are they all stored in $_SERVER? Even custom ones?

1
32
3/18/2016 1:29:50 PM

Try this

print_r($_SERVER)

It will list everything within the array

37
9/10/2009 6:34:43 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon