How to get phpinfo() variables from php programatically?

sn0zb0z

New Member
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 hacking). Some of the things I am interested in is the following:[*]\[code\]./configure\[/code\] options.[*]I would also like the very first \[code\]System\[/code\] value in phpinfo. [*]The loaded PHP modules(as shown in the Apache section)[*]The build date of PHP.[*]Registered PHP streams[*]Registered stream socket transports[*]Registered stream filtersHow can I get either just a portion of the phpinfo or get these values as a regular string? Note that it doesn't matter if there if markup included, but I don't want to parse the phpinfo as that just seems really slow and surely there is a better way..
 
Back
Top