php
crizy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【汇总】nginx【php,location,alias,504】
安装#tar -zxvf nginx-1.0.5.tar.gz#cd nginx-1.0.5#./configure --prefix=/usr/local/nginx#make#make install 启动// 启动#/usr/local/nginx/sbin/nginx// 重启#/usr/local/nginx/...2011-09-21 11:39:29 · 180 阅读 · 0 评论 -
【汇总】异步POST数据【ajax,curl,sock】
整理下异步post表单的方法 被调用的程序,http://127.0.0.1/form.php<?phpif(!empty($_POST)) { print_r($_POST);} else { echo 'NO POST';} 1.curl方法<?php$url = 'http://127.0.0.1/form.php';...2011-09-26 17:59:15 · 132 阅读 · 0 评论 -
【汇总】PHP扩展【xhprof,eaccelerator】
环境1.PHP 5.3.8,使用fastcgi方式安装,安装目录/usr/local/php2.CentOS 5.5 xhprof生成xhprof.so#unzip -o xhprof-0.9.2.zip#cd xhprof-0.9.2#cd xhprof-0.9.2/xhprof-0.9.2/extension/#/usr/local/php/bin/ph...2011-10-09 13:26:11 · 138 阅读 · 0 评论 -
【汇总】PHP常用小函数【概率,毫秒,IP】
/** * 概率计算 * @param array('a'=>0.5, 'b'=>0.2) * @return string (key of array, eg. 'a' or 'b') */function random($ps) { $arr = array(); $key = md5(serialize($ps)); if(!...2011-10-10 11:01:25 · 137 阅读 · 0 评论 -
【汇总】PHP【memcache协议】
在面试的时候,被问到了关于memcache的很多方面,发现自己只知道set,get是不够的,所以重新整理下基本内容Memcache — Memcache类Memcache::add — 增加一个条目到缓存服务器Memcache::addServer — 向连接池中添加一个memcache服务器Memca...2012-01-13 15:23:44 · 165 阅读 · 0 评论 -
PHP【soap】
1.php.ini里开启php_soapextension=php_soap.dll 2.server.php<?phpclass test { public function hello() { return 'Hello World!'; }}$options = array( 'uri' => 'http://127.0...2012-03-12 19:02:57 · 209 阅读 · 0 评论
分享