The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Phpinfo() and Global Vars
How could I read all (each one) the vars displayed in phpinfo() ?
I found somewhere the reference to one or another .... but can't understand the exact difference between global var series. Most of all, where find a complete reference of each global var accessible via PHP code (and hopefully echoable ... leased: ) Could I even redirect the output of phpinfo(parameter), for example ? Note: I've already checked the PHP Manual: Predefined variables page, but it isn't complete, as itself said Quote:
What's the difference ??? Thanks Bye |
#2
|
||||
|
||||
http://www.php.net/manual/en/function.phpinfo.php
example: phpinfo(2) will show you only the credits. |
#3
|
||||
|
||||
To capture the output of phpinfo():
Code:
ob_start(); phpinfo(); $phpinfo = ob_get_contents(); ob_end_clean(); |
#4
|
|||
|
|||
Quote:
Thanks even to FF. Is this the usual PHP redirection method into an object ? Bye P.S.: I updated my original request with some more info, meanwhile... |
#5
|
||||
|
||||
It's called Output Buffering or Controlled Output, it's used to capture the output from going to the browser so you can do stuff with it.
|
#6
|
||||
|
||||
Quote:
|
#7
|
|||
|
|||
Yes, thanks.
But what are the differences between ( in phpinfo() ): - Apache variables - Http header infos - Php vars and how each group of them could be accessed by php ? (I mean with a $.... or associative array...) Thanks again |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|