I am attempting to get a list of dependable(consistent across requests) list of \"hidden\" constants in PHP(as in, the client-side won\'t know about it in most cases without hac
Here you go:
ini_get_all()
or get_loaded_extensions()
were the closest I could findphp_uname()
apache_get_modules()
phpversion()
was the closest I could findstream_get_wrappers()
stream_get_transports()
stream_get_filters()
See also get_defined_constants()
and some more.
As Chacha102 mentioned you can also use output control functions and parse the phpinfo()
:
ob_start();
phpinfo();
$variable = ob_get_contents();
ob_get_clean();
Due to the use of ob_get_clean()
it won't mess up other output buffering levels you may be using.