PHP Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 3.00

"php -i" - PHP Engine Information

This section provides a tutorial example on how to get more information about the PHP engine and its execution environment: php -i

If you want to know more information about the PHP engine and its execution environment you run the php.exe program with the "-i" option:

>\php\php -i

phpinfo()
PHP Version => 5.2.2

System => Windows NT HERONG build 2600
Build Date => May  2 2007 19:17:46
Configure Command => cscript /nologo configure.js  "--enable-snapsh...
Server API => Command Line Interface
Virtual Directory Support => enabled
Configuration File (php.ini) Path => C:\WINDOWS
Loaded Configuration File => C:\php\php.ini
PHP API => 20041225
PHP Extension => 20060613
Zend Extension => 220060519
Debug Build => no
Thread Safety => enabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => php, file, data, http, ftp, compress.zlib  
Registered Stream Socket Transports => tcp, udp
Registered Stream Filters => convert.iconv.*, string.rot13, string...
...

Configuration

PHP Core

Directive => Local Value => Master Value
allow_call_time_pass_reference => On => On
allow_url_fopen => On => On
allow_url_include => Off => Off
always_populate_raw_post_data => Off => Off
...


PHP Variables

Variable => Value
_SERVER["CLIENTNAME"] => Console
_SERVER["CommonProgramFiles"] => C:\Program Files\Common Files
_SERVER["ComSpec"] => C:\WINDOWS\system32\cmd.exe
_SERVER["HOMEDRIVE"] => C:
_SERVER["NUMBER_OF_PROCESSORS"] => 2
_SERVER["OS"] => Windows_NT
_SERVER["SESSIONNAME"] => Console
...

_ENV["CLIENTNAME"] => Console
_ENV["CommonProgramFiles"] => C:\Program Files\Common Files
_ENV["ComSpec"] => C:\WINDOWS\system32\cmd.exe
_ENV["HOMEDRIVE"] => C:
_ENV["NUMBER_OF_PROCESSORS"] => 2
_ENV["OS"] => Windows_NT
..

Last update: 2007.

Sections in This Chapter

What Is PHP?

Downloading and Installing PHP 5.0.4 for Windows

Downloading and Installing PHP 5.2.2 for Windows

"php -help" - Command Line Options

"php -m" - Compiled-in Modules

"php -i" - PHP Engine Information

Hello.php - My First PHP Script

Adding PHP to IIS as CGI

Dr. Herong Yang, updated in 2009
"php -i" - PHP Engine Information