I know that header_remove doesn't work in php versions < 5.3 and I use 5.2.1. I am looking for an alternative to header_remove to remove the X-Powered-By header.
I tried using header("X-Powered-By: "); but it still generates a blank header. I tried using Header unset X-Powered-By in .htaccess, but for some reason it's not working. I am stuck here.
header unset
directive to work mod_header must be installed and you must have FileInfo override privileges. I don't see any other way to remove that header, good for you if I'm wrong ;-) – VolkerK Apr 18 '10 at 18:57header("X-Powered-By:");
. I always thought this was how headers were unset in older versions of PHP. You could always just leave it in and change it to something bogus:header("X-Powered-By: Fairies!");
– Andy E Apr 18 '10 at 19:21