terminal – 如何确定PHP的编译时选项?

我正在尝试自定义我的PHP安装,但我不熟悉从头开始编译程序.如何确定用于PHP的编译时选项?具体来说,我正在尝试确定是否指定了–with-readline选项.谢谢!

解决方法:

PHP -i来自命令行;

$PHP -i
PHPinfo()
PHP Version => 5.3.3

System => Darwin jsalaz-mac.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386
Build Date => Aug 22 2010 19:27:08
Configure Command => ‘/var/tmp/apache_mod_PHP/apache_mod_PHP-53.3.1~2/PHP/configure’ ‘–prefix=/usr’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/info’ ‘–disable-dependency-tracking’ ‘–sysconfdir=/private/etc’ ‘–with-apxs2=/usr/sbin/apxs’ ‘–enable-cli’ ‘–with-config-file-path=/etc’ ‘–with-libxml-dir=/usr’ ‘–with-openssl=/usr’ ‘–with-kerberos=/usr’ ‘–with-zlib=/usr’ ‘–enable-bcmath’ ‘–with-bz2=/usr’ ‘–enable-calendar’ ‘–with-curl=/usr’ ‘–enable-exif’ ‘–enable-ftp’ ‘–with-gd’ ‘–with-jpeg-dir=/BinaryCache/apache_mod_PHP/apache_mod_PHP-53.3.1~2/Root/usr/local’ ‘–with-png-dir=/BinaryCache/apache_mod_PHP/apache_mod_PHP-53.3.1~2/Root/usr/local’ ‘–enable-gd-native-ttf’ ‘–with-ldap=/usr’ ‘–with-ldap-sasl=/usr’ ‘–enable-mbstring’ ‘–enable-mbregex’ ‘–with-MysqL=MysqLnd’ ‘–with-MysqLi=MysqLnd’ ‘–with-pdo-MysqL=MysqLnd’ ‘–with-MysqL-sock=/var/MysqL/MysqL.sock’ ‘–with-iodbc=/usr’ ‘–enable-shmop’ ‘–with-snmp=/usr’ ‘–enable-soap’ ‘–enable-sockets’ ‘–enable-sysvmsg’ ‘–enable-sysvsem’ ‘–enable-sysvshm’ ‘–with-xmlrpc’ ‘–with-iconv-dir=/usr’ ‘–with-xsl=/usr’ ‘–enable-zend-multibyte’ ‘–enable-zip’ ‘–with-pcre-regex=/usr’

要么;

此信息应该在PHPinfo函数输出中,您可以将其放入网页并访问.

根据PHP’s PHPInfo Reference Page,您所要做的就是创建一个包含以下内容文件:<?PHP PHPinfo(); ?&gt ;,使用PHP将其放在Web可查看的位置,然后在浏览器中浏览到它.

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...