Monthly Archives: 八月 2013

nginx 1.4.2 lua

nginx lua nginx 安装 lua 0.下载需要的软件 [root@q_cent ~]# wget http://nginx.org/download/nginx-1.4.2.tar.gz [root@q_cent ~]# wget http://luajit.org/download/LuaJIT-2.0.2.tar.gz [root@q_cent ~]# wget https://github.com/simpl/ngx_devel_kit/archive/v0.2.18.tar.gz [root@q_cent ~]#… Continue reading »

centos6.3 mini php-5.5.3 php-5.4.19 nginx 1.4.2

php nginx 在centos 6.3 mini 下安装: 1, 安装相关库 [root@qcent6 ~]# yum -y install gcc autoconf gcc-c++ make libxml2-devel openssl-devel libcurl-devel… Continue reading »

Freebsd 9.1 + nginx 1.4.2 + php 5.4.18 + php 5.5.2 编译安装

PHP 在Freebsd 9.1 下的安装 1.下载 nginx root@bsd91:/root # fetch http://nginx.org/download/nginx-1.4.2.tar.gz 2.下载 php 5.5.2 root@bsd91:/root # fetch http://www.php.net/get/php-5.5.2.tar.bz2/from/hk1.php.net/mirror root@bsd91:/root # mv… Continue reading »

yii framework 运行流程

<?php //Yii::createWebApplication( $config )->run(); yii extends yiibase index.php; yii.php -> yiibase.php; // yiibase::createWebApplication; CWebApplication extends CApplication extends CModule extends CComponent… Continue reading »

php-fsockopen-demo

<?php function Httpxlxz($ip, $host, $url) { $response = ”; $errstr = ”; $errno = ”; $fp = fsockopen ($ip, 80,… Continue reading »