★ wanayoo — archive 1999 http://www.php.net/manual/function.phpinfo.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to PHP options/info
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
PHP options/info
* error_log
* error_reporting
* extension_loaded
* getenv
* get_cfg_var
* get_current_user
* get_magic_quotes_gpc
* get_magic_quotes_runtime
* getlastmod
* getmyinode
* getmypid
* getmyuid
* getrusage
* phpinfo
* phpversion
* php_logo_guid
* php_sapi_name
* putenv
* set_magic_quotes_runtime
* set_time_limit
* zend_logo_guid
* get_loaded_extensions
* get_extension_funcs
* get_required_files
* get_included_files
Manual: phpinfo
View the source code for this pageSearch the site



Previous page
 getrusage
 Updated
Sat, 12 Aug 2000
phpversion 
Next page


phpinfo

(PHP3 , PHP4 )

phpinfo -- Output lots of PHP information.

Description

int phpinfo (void)

Outputs a large amount of information about the current state of PHP. This includes information about PHP compilation options and extensions, the PHP version, server information and environment (if compiled as a module), the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers, and the GNU Public License.

See also phpversion().


User Contributed Notes: phpinfo


rayh@xaos.com
30-Nov-1999 11:01
i'd like to write the output of phpinfo() to a file in a situation where i need to see the environment vars from a script that returns no document; in this case a script handling a PUT request. as this function returns an int, fwrite(phpinfo()) writes '1' to the file. by itself, the function writes to the return document.


tom@lambert.net
04-Aug-2000 09:44
Does anyone know where phpinfo gets its info regarding the system - that is the info that comes right at the top after the credits where is says
System: Linux nodename.domain.superdomain kernel_version
The reason I ask is that mine keeps giving an incorrect response. It gives a name that no longer applies to the system. When it gives host, domain and all that down in the lower sections, that is all correct, but the upper one doesn't change. Has anyone run into this?

Cheers
Tom



clunis@umich.edu
05-Aug-2000 03:13
"System: OS nodename.domain.superdomain kernel_version"

that looks like the output of uname -a to me. A quick scan through info.c shows that this is, in fact, uname output and it is hardcoded at compile time as PHP_UNAME. reconfigure and remake for the simplest way to fix this.



 About Notes


Previous page
 getrusage
 Updated
Sat, 12 Aug 2000
phpversion 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.