How to get phpinfo() variables from php programmatically?
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: ./configure options. I would also like the very first System 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 filters How can I get either just a portion of the phpinfo or get these values as a regular string? Note that it doesn't matter