wget -c http://pecl.php.net/get/zip-1.13.5.tgz
tar xzvf zip-1.13.5.tgz
cd zip-1.13.5
/zebra/service/php-fpm-5.6/bin/phpize
./configure --with-php-config="/zebra/service/php-fpm-5.6/bin/php-config"
make && make test
php.ini
; End:
extension="/zebra/service/php-fpm/extensions/zip.so"
________________________________________________________
php 扩展网址
http://pecl.php.net/package/zip
./phpize
./configure --with-php-config="/zebra/service/php-fpm-5.6/bin/php-config"
make && make test && make install
vi php.ini
extension=xhprof.so
./reload-fpm
_________________________________________________________
php文件更改生效时间
; How often (in seconds) to check file timestamps for changes to the shared
; memory storage allocation. ("1" means validate once per second, but only
; once per request. "0" means always validate)
; modified by mgr.
;opcache.revalidate_freq=60
opcache.revalidate_freq=3
_________________________________________________________
http://www.coding123.net/article/20121105/access-Control-Allow-Origin-cross-domain-request-danger.aspx
<?php
header("Access-Control-Allow-Origin: *");
?>
__________________________________________________________
# yum -y install httpd php
# yum -y install php*
# Linux VI 命令/etc/httpd/conf/httpd.conf
## modified by maguirun.
DirectoryIndex index.php index.html index.html.var
## added by maguirun.
AddType application/x-httpd-php .php .phtml .php3 .inc
AddType application/x-httpd-php-source .phps
# Linux VI 命令/etc/php.ini
; added by maguirun.
error_reporting = E_ALL & ~E_NOTICE [Code Cleanliness, Security(?)]
; added by maguirun.
extension=json.so
# service httpd start
# lsof -i :80
# Linux VI 命令/var/www/html/info.php
<?php
phpinfo();
?>
# tar xzvf json-1.2.1.tgz
# yum install php-devel automake autoconf libtool gcc
# cd json-1.2.1
# phpize
# ./configure
# make
# make install
# service httpd restart
____________________________________________________________
myron