php -i
dari baris perintah;
$ php -i
phpinfo ()
Versi PHP => 5.3.3
Sistem => Darwin jsalaz-mac.local 10.6.0 Darwin Kernel Versi 10.6.0: Rabu 10 November 18:13:17 PST 2010; root: xnu-1504.9.26 ~ 3 / RELEASE_I386 i386
Tanggal Pembuatan => 22 Agustus 2010 19:27:08
Konfigurasi Perintah => '/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 '' --dengan -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 '' --dengan -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 ' '--dengan-pcre-regex = / usr'--with-mysqli = mysqlnd '' --with-pdo-mysql = mysqlnd '' --with-mysql-sock = / var / mysql / mysql.sock '' --with-iodbc = / usr '' - aktifkan-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 '' --enable-zip '' --with-pcre -regex = / usr '--with-mysqli = mysqlnd '' --with-pdo-mysql = mysqlnd '' --with-mysql-sock = / var / mysql / mysql.sock '' --with-iodbc = / usr '' - aktifkan-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 '' --enable-zip '' --with-pcre -regex = / usr '--with-iconv-dir = / usr '' --with-xsl = / usr '' --enable-zend-multibyte '' --enable-zip '' --with-pcre-regex = / usr '--with-iconv-dir = / usr '' --with-xsl = / usr '' --enable-zend-multibyte '' --enable-zip '' --with-pcre-regex = / usr '
atau;
Informasi ini harus dalam phpinfo
output fungsi yang dapat Anda masukkan ke halaman web dan kunjungi.
Per Halaman Referensi PHPInfo PHP , yang harus Anda lakukan adalah membuat file dengan konten :,<?php phpinfo(); ?>
letakkan di lokasi yang dapat dilihat web dengan PHP, lalu jelajahi di browser.