The role of Php-config under PHP directory
1. Php-config Introduction
After the installation of PHP, there is a php-config in the bin directory.
Php-config is a script file. Used to obtain information about the installed PHP configuration.
2. Usage Scenarios
When compiling the PHP extension, use the following command to specify the path to the Php-config.
3. Php-config Use options
Executing at the command line
Return all options:
Options: --prefix [...] PHP installs the path prefix --includes [...] to list all files included with the-i option --ldflags [... ] PHP compiled using the LD flag --libs [...] PHP compiled with the library--extension-dir [...] The default path of the extension library --include-dir [...] The default path prefix for the header file --php-binary [...] The full path of the PHP CLI or CGI executable file --php-sapis [...] lists all available SAPI modules --configure-options [...] to reproduce the current PHP configuration options at compile time
--version [...] PHP version number --vernum [...] The PHP version number, expressed as an integer
4. View Php-config Code
Php-config is a script file that allows you to view the contents of his code directly.
Vim Php-config
You can see that the variables inside are generated when you install the PHP script.
from:http://blog.csdn.net/yonggang7/article/details/24106681