PHP/CGI: Portable and safe way to get PATH_INFO
Posted
by LiraNuna
on Stack Overflow
See other posts from Stack Overflow
or by LiraNuna
Published on 2009-12-10T21:08:31Z
Indexed on
2010/05/29
12:52 UTC
Read the original article
Hit count: 209
I'm seeking a portable way to receive the (handy) $_SERVER['PATH_INFO']
variable.
After reading a while, it turns out PATH_INFO
is originated from CGI/1.1, and my not always be present in all configuration.
What is the best (mostly security-wise) way to get that variable - apart from extracting it manually (security concern).
© Stack Overflow or respective owner