![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 126 阅读 · 0 评论 -
【汇总】异步POST数据【ajax,curl,sock】
整理下异步post表单的方法 被调用的程序,http://127.0.0.1/form.php <?php if(!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 · 92 阅读 · 0 评论 -
【汇总】PHP扩展【xhprof,eaccelerator】
环境 1.PHP 5.3.8,使用fastcgi方式安装,安装目录/usr/local/php 2.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 · 95 阅读 · 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 · 100 阅读 · 0 评论 -
【汇总】PHP【memcache协议】
在面试的时候,被问到了关于memcache的很多方面,发现自己只知道set,get是不够的,所以重新整理下 基本内容 Memcache — Memcache类 Memcache::add — 增加一个条目到缓存服务器 Memcache::addServer — 向连接池中添加一个memcache服务器 Memca...2012-01-13 15:23:44 · 120 阅读 · 0 评论 -
PHP【soap】
1.php.ini里开启php_soap extension=php_soap.dll 2.server.php <?php class test { public function hello() { return 'Hello World!'; } } $options = array( 'uri' => 'http://127.0...2012-03-12 19:02:57 · 118 阅读 · 0 评论