Re: What is php compiled with now?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Mar 12, 2008 at 1:19 PM, Jay Why <justcallmejay@xxxxxxxxx> wrote:
> How do I find out what flags php are compiled with now so I can include
> those when reconfiguring it. I want to make an addition, but I want to keep
> everything is already there now. How do I get a listing of that?

    The easiest way is to create a file with phpinfo() like so:

<?php
    phpinfo();
?>

    Then check "Configure Command" and you'll see the ./configure
line.  It should look something like this:

'./configure' '--prefix=/usr' '--with-xml' '--with-mm'
'--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-exif'
'--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext'
'--with-imap=/usr/local/imap-2004g' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt'
'--with-mhash' '--enable-magic-quotes' '--with-mm' '--with-mysqli'
'--with-mysql=/usr' '--with-snmp' '--enable-ucd-snmp-hack'
'--with-openssl' '--enable-discard-path' '--with-pear'
'--with-pgsql=/usr' '--with-pspell' '--enable-sockets'
'--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr'
'--enable-gd-native-ttf' '--with-xmlrpc' '--enable-zip' '--with-zlib'

    When running ./configure, if you use that information, just be
sure to remove the quotes.
-- 
</Dan>

Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux