php5.6下載 最新軟件|熱門排行|軟件分類|軟件專題|廠商大全

您的位置: 首頁網絡軟(ruǎn)件服務器區 → php5.6.30 32/64位

php5.6.30

32/64位 php5.6.30 網友評分:8

同類相(xiàng)關軟(ruǎn)件

軟件介紹

軟件標簽: php

php5.6是一種常見的編程語言。綠色資源(yuán)網帶來的為php5.6,具有很大新特性,如:可(kě)以(yǐ)使用表達式定義常量、加入hash_equals()函數、新增generators等,用戶(hù)下(xià)載後體驗下就知道了。

php5.6新特性

主要特性:

Constant scalar expressions.

Variadic functions and argument unpacking using the...operator.

Exponentiation using the**operator.

Function and constant importing with the use keyword.

phpdbg 作為一個交互式集成的調試器 sapI

php://input 現在可以(yǐ)複用(yòng),廢棄(qì)了(le) $HTTP_RAW_POST_DATA

GMP 對象支持操作(zuò)符重載

允許上(shàng)傳超過 2G 的文件

兼容性方麵改進:

Array keys won't be overwritten when defining an array as a property of a class via an array literal.

json_decode() is more strict in JSON syntax parsing.

Stream wrappers now verify peer certificates and host names by default when using SSL/TLS.

GMP resources are now objects.

Mcrypt functions now require valid keys and IVs.

php5.6編(biān)譯安裝教程

1、查看當前係統版本

# cat /etc/redhat-release

centos Linux release 7.2.1511 (Core)

2、yum安裝依賴的程序(xù)包

yum install zlib libxml libjpeg freetype libpng gd curl libiconv zlib-devel libxml2-devel libjpeg-devel freetype-devel libpng-devel gd-devel curl-devel openssl openssl-devel libxslt-devel

3、安(ān)裝libiconv程序包

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz

tar zxf libiconv-1.15.tar.gz

cd libiconv-1.15

./configure --prefix=/usr/local/libiconv

make

make install

4、配置編譯安裝PHP-5.6.30.tar.gz

wget http://tw1.php.NET/get/php-5.6.30.tar.gz/from/this/mirror

mv mirror php-5.6.30.tar.gz

tar xzvf php-5.6.30.tar.gz

./configure \

--prefix=/usr/local/php \

--with-apxs2=/usr/local/apache/bin/apxs \

--with-mysql=/usr/local/mysql \

--with-pdo-mysql=/usr/local/mysql \

--with-pdo-oci=instanTCLient,/usr,10.2.0.1 \

--with-oci8=instantclient,/usr/lib/oracle/11.2/client/lib \

--with-xmlrpc \

--with-openssl \

--with-zlib \

--with-freetype-dir \

--with-gd \

--with-jpeg-dir \

--with-png-dir \

--with-iconv=/usr/local/libiconv \

--enable-short-tags \

--enable-sockets \

--enable-zend-multibyte \

--enable-soap \

--enable-mbstring \

--enable-static \

--enable-gd-native-ttf \

--with-curl \

--with-xsl \

--enable-ftp \

--with-libxml-dir

make

make install

5、拷貝修改配置文件(jiàn)

cp /usr/local/src/php-5.6.30/php.ini-production /usr/local/php/lib/php.ini

apache增加php支持,修改httpd.conf

在 “AddType application/x-gzip .gz .tgz” 下(xià)麵增加兩(liǎng)行

AddType application/x-httpd-php  .php  .php3

AddType application/x-httpd-php-source  .phps

在“DirectoryIndex index.html” 後(hòu)麵增加一個index.php

6、測試php環境是否正常

vi index.php

<?php

phpinfo();

?>

7、測試php連接mysql是否正常(cháng)

vi index.php

<?php

//$link=mysql_connect('localhost','username','password');

$link=mysql_connect('localhost','discuz','discuz') or mysql_error();

if($link){

echo "mysql successful connect php!";

}else{

echo mysql_error();

}

?>

8、LNMP編譯(yì)配置

./configure \

--prefix=/usr/local/php \

--with-mysql=/usr/local/mysql \

--with-pdo-mysql=/usr/local/mysql \

--with-xmlrpc \

--with-openssl \

--with-zlib \

--with-freetype-dir \

--with-gd \

--with-jpeg-dir \

--with-png-dir \

--with-iconv=/usr/local/libiconv \

--enable-fpm \

--with-fpm-user=nginx \

--with-fpm-group=nginx \

--enable-short-tags \

--enable-sockets \

--enable-zend-multibyte \

--enable-soap \

--enable-mbstring \

--enable-static \

--enable-gd-native-ttf \

--with-curl \

--with-xsl \

--enable-ftp \

--with-libxml-dir=/usr

9、LNMP啟動php-fpm

cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf

/usr/local/php/sbin/php-fpm

10、LNMP修改nginx配置文(wén)件

#locations ~ \.php$ {

#    root           html;

#    fastcgi_pass   127.0.0.1:9000;

#    fastcgi_index  index.php;

#    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;

#    include        fastcgi_params;

#}

去掉注釋,修改include為fastcgi.conf

軟件(jiàn)截(jié)圖

下載地址 電腦版

點擊報錯 軟件無法下載或下載後無法使用,請點擊報錯,謝謝!

用戶評論

熱門評論

最新評論

發表評論 查看所有評論(0)

昵稱:
請不要評論無(wú)意義或髒話,我們(men)所(suǒ)有評論(lùn)會有人工審核.
字數: 0/500 (您的評論需要經(jīng)過審核(hé)才能顯(xiǎn)示)
免费人欧美成又黄又爽的视频丨一本色道久久88综合日韩精品丨国产专区日韩精品欧美色丨午夜无遮挡男女啪啪视频丨国产欧美日韩综合精品一区二区丨亚洲精品无码不卡在线播HE丨亚洲精品国产精品国自产观看丨日韩国产高清av不卡