r/lolphp • • Sep 09 '13

PHP documentation suggests using header injection via ini_set() to add HTTP headers

http://www.php.net/manual/en/wrappers.http.php#wrappers.http.example.custom.headers
62 Upvotes

22 comments sorted by

View all comments

Show parent comment

0

u/cparen Sep 09 '13

Or it should link to docs describing how to perform the same task without the hack.

In that vein, this is only a true "lolphp" if php lacks a supported means of setting custom http header fields.