Php-config Introduction

Source: Internet
Author: User
Tags php cli

Php-config

Php-config is a simple command-line script to get information about the installed PHP configuration.

When compiling extensions, if you have multiple versions of PHP installed, you can use the --with-php-config option at configuration time to specify which version to compile with, which specifies the path to the corresponding Php-config script.

The options that the Php-config script can use on the command line can be displayed with the- h option:

Usage:/usr/local/bin/php-config [option]options:  --prefix            [...]  --includes          [...]  --ldflags           [...]  --libs              [...]  --extension-dir     [...]  --include-dir       [...]  --php-binary        [...]  --php-sapis         [...]  --configure-options [...]  --version           [...]  --vernum            [...]

Command-Line Options
Options Description
--prefix Path prefixes installed by PHP, such as/usr/local
--includes List all files included with-i option
--ldflags The LD flag used by PHP at compile time
--libs Libraries that are attached to PHP at compile time
--extension-dir Default path for extension libraries
--include-dir Default path prefix for header files
--php-binary Full path to the PHP CLI or CGI executable file
--php-sapis List all available SAPI modules
--configure-options Reproduce the current PHP configuration options at compile time
--version PHP Version number
--vernum

The PHP version number, expressed as an integer

Php-config Introduction

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.