微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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可查看的位置,然后在浏览器中浏览到它.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐