PHP directory under the Php-config function

Source: Internet
Author: User
Tags php cli
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



  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.