Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 10 Mar 2002, 11:35
Jawelin Jawelin is offline
 
Join Date: Nov 2001
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
Note: This list is neither exhaustive nor intended to be. It is simply a guideline as to what sorts of predefined variables you can expect to have access to in your script.
Even I got almost confused by the VBulletin management of those vars. Sometimes some are accessed by getenv() function, sometimes directly via a $HTTP_var constant.
What's the difference ???

Thanks

Bye

Last edited by Jawelin : 10 Mar 2002 at 11:44.
Reply With Quote
  #2  
Old 10 Mar 2002, 11:41
TECK's Avatar
TECK TECK is offline
 
Join Date: Dec 2001
Real name: Floren Munteanu
http://www.php.net/manual/en/function.phpinfo.php

example: phpinfo(2) will show you only the credits.
__________________
Floren Munteanu
Axivo Inc.
Axivo Community - Visit the forums to find out more about us
Why Queued - My personal blog
Reply With Quote
  #3  
Old 10 Mar 2002, 11:42
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
To capture the output of phpinfo():

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #4  
Old 10 Mar 2002, 11:47
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Originally posted by nakkid
http://www.php.net/manual/en/function.phpinfo.php

example: phpinfo(2) will show you only the credits.
Thanks, Nakkid. But I wouldn't only be shown that page. For instance, I would use one by one those vars...

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...
Reply With Quote
  #5  
Old 10 Mar 2002, 11:51
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
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.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #6  
Old 10 Mar 2002, 19:28
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
Re: Phpinfo() and Global Vars

Originally posted by Jawelin
Even I got almost confused by the VBulletin management of those vars. Sometimes some are accessed by getenv() function, sometimes directly via a $HTTP_var constant.
What's the difference ???
Most of those vars can be accessed directly by using $HTTP_XXXXX. But to access those vars in a function, you need to use getenv("HTTP_XXXXX") or $GLOBALS["HTTP_XXXXX"], or declare them as global in the function.
Reply With Quote
  #7  
Old 10 Mar 2002, 22:02
Jawelin Jawelin is offline
 
Join Date: Nov 2001
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
Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Phpinfo and MySQL info (Admin cp integration) Brad vBulletin 2.x Full Releases 12 04 Jan 2005 09:04
Global phpinfo with admin cp on/off switch (vb3 backport) Brad vBulletin 2.x Full Releases 6 18 Jul 2003 15:34

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 10:51.

Layout Options | Width: Wide Color: