- 博客(13)
- 收藏
- 关注
转载 【转】php工作原理
【转】php工作原理php,apache和mysql组合的工作过程:PHP的所有应用程序都是通过WEB服务器(如IIS或Apache)和PHP引擎程序解释执行完成的,工作过程:(1)当用户在浏览器地址中输入要访问的PHP页面文件名,然后回车就会触发这个PHP请求,并将请求传送化支持PHP的WEB服务器。(2)WEB服务器接受这个请求,并根据其后缀进行判断如果
2013-08-30 22:38:50 682
原创 php 文件下载
$file_name = $_GET['file']; //下载文件名 $file_dir = dirname(__FILE__) //下载文件存放目录 //检查文件是否存在 if (! file_exists ( $file_dir . ‘/' . $file_name )) { echo "文件找不到"; exit (); }
2013-08-30 14:22:20 970
原创 python LazyImport
'''Created on 2013-8-29@author: Administrator'''class LazyImport: def __init__(self, module_name): self.module_name = module_name self.module = None def _
2013-08-29 22:18:30 830
原创 python apply class extend usage
'''Created on 2013-8-29@author: Administrator'''class Rectangle: def __init__(self, color="white", width=10, height=10): print "create a ", color,self, "sized", wid
2013-08-29 22:10:13 623
原创 centos install redis phpredis
安装redis和phpredis模块安装redis模块wget http://download.redis.io/redis-stable.tar.gztar -zxvf redis-stable.tar.gzcd redis-stablemake && make installcp redis.conf /usr/l
2013-08-29 14:55:35 491
转载 centos install memcached php-memcache
Linux指令下载:wget http://memcached.googlecode.com/files/memcached-1.4.4.tar.gzwget http://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gzwget http://pecl.php.net/get/memcache-2.2.5.tgz二、
2013-08-29 14:37:12 811
原创 xml 提取属性
package_name="com.zjh.cmge" version_name="2.3" version_code="1" block_fr="" size="11.50M" icon_url="http://download.haoma.sogou.com/Android/recommend/images/cmgegame.pn
2013-08-29 14:34:00 1016
原创 jpgraph中文乱码解决
1.将windows字体文件(simhei.ttf,simsun.ttc)复制到 fonts目录下2.注释掉jpgraph_ttf.inc.php 下面代码// elseif( $aFF === FF_SIMSUN ) {// // Do Chinese conversion// if( $this->g2312 == nu
2013-08-22 08:40:29 491
原创 doc filter
'''Created on 2013-8-21@author: Administrator'''import reimport mathdef getwords(doc): splitter = re.compile("\\W*") words = [s.lower() for s in splitter.split(doc) if le
2013-08-21 08:11:57 403
原创 python GIL (Global Interpreter Lock)
每一个interpreter进程,只能同时仅有一个线程来执行, 获得相关的锁, 存取相关的资源
2013-08-10 16:23:52 515
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人