| 订阅 RSS

PHP实现多服务器共享 SESSION 数据

八月 21st, 2010 | 7 Comments | Posted in PHP | 68次浏览

一、问题起源     稍大一些的网站,通常都会有好几个服务器,每个服务器运行着不同功能的模块,使用不同的二级域名,而一个整体性强的网站,用户系统是统一的,即一套用户名、密码在整个网站的各个模块中都是可以[......]

继续阅读

Tags: ,

ubuntu 9.04下安装配置gearman

七月 2nd, 2010 | 2 Comments | Posted in PHP | 167次浏览

Author:gaojinbo Time:2010-06-25
ubuntu 9.04下安装配置gearman V1.0     gearman安装配置
Gearman是最早由LiveJou[......]

继续阅读

Tags:

用Memcache 缓存加速Mysql的查询V1.0

六月 28th, 2010 | 1 Comment | Posted in PHP | 217次浏览

用Memcache缓存加速Mysql的查询,很不错的接口,希望对大家有所帮助!

<?php
$memcachehost = '192.168.1.1';
$memcacheport = 12000;
$memcachelife [......]

继续阅读

Tags: ,

请问如何在PHP中嵌入一个HTML文件

四月 30th, 2010 | 1 Comment | Posted in PHP | 297次浏览

php里面添加html文件,很多时候需要用到!
如添加一个站点统计到网站,如果你的网站全部是php来写的,这时候直接用echo输出统计代码就会出现问题!然后php可以很方便的引入一个html文件,这样就方便多了!
 
具体操作如下[......]

继续阅读

Tags:

howto install php pcntl

三月 17th, 2010 | No Comments | Posted in PHP | 2,624次浏览

Author:gaojinbo Time:2010-3-17
1.环境 ubuntu server 8.04 64位 php 5.2.4
 
2.下载php5源码 mkdir php cd php [......]

继续阅读

Tags:

PHP配置文件翻译

一月 24th, 2010 | No Comments | Posted in PHP | 499次浏览

网上有很多PHP配置文件翻译了 自己再翻译一遍是为了能够理解.毕竟读一遍原文再翻译会碰到需要理解的地方.
下载:

centos yum php5.2.x repo安装方法

十一月 25th, 2009 | 1 Comment | Posted in PHP | 1,415次浏览

Author:gaojinbo Time:2009-11-25
由于centos5.4安装好后通过yum来安装php的版本是5.1.6,现在很多站点都是在5.2.x上开发的,所以我们要添加其他的yum repo 来安装Php5.2[......]

继续阅读

Tags: ,

Nginx下Magento配置与性能优化

十一月 13th, 2009 | No Comments | Posted in PHP | 1,386次浏览

文章目标:能够成功的使Magento运行于Nginx服务器上,并对Magento的性能进行优化。
 
阅读前提:对Web服务器配置有一定的经验,知道Nginx和Magento是什么,假设你已经在LAMP环境中安装过Magento,[......]

继续阅读

Tags: ,

利用php+mysql+sphinx构建敏捷型搜索引擎

十一月 6th, 2009 | No Comments | Posted in PHP, Ubuntu | 947次浏览

制作:高进波 时间:2009-11-05 ubuntu下利用php+sphinx构建搜索引擎,在ubuntu 8.04 64位系统下测试通过
下载地址: wget , , ,

PHP安全配置

十月 14th, 2009 | No Comments | Posted in 5.安全, PHP | 541次浏览

制作:高进波 时间:2009-10-14
修改配置文件 vi php.ini
register_globals 关闭
open_basedir    该设置会限制对指定目录下所有文件的访问,一般为[......]

继续阅读

Tags: ,