星期三, 六月 30th, 2010 Posted in PHP开发 | No Comments »
提起php调用web service,在php4年代的人会立即想到用nusoap调用,这个nusoap是个好东东,不过年久未更新,恐其中会有众多漏洞了,正好已经进入了 php5年代了,调用web service用自带的扩展岂不快哉!
前提:打开php5的web service扩展
环境需求:
This extension makes use of the GNOME xml library. Download and install this library. You will need at least libxml-2.5.4.
Tags: php, SOAP, web service
星期三, 六月 30th, 2010 Posted in PHP开发 | No Comments »
原文地址:http://www.oreilly.com.tw /product_security.php?id=a052_sample
信用卡号的最后一个数字,就是输入过程中用来检验卡号是否正确时,所使用的核对数字。虽然此核对演算法早已公开(ISO 2894),但是目前还是很多人并不清楚它的作法。
信用卡号的最后一个数字,就是输入过程中用来检验卡号是否正确时,所使用的核对数字。虽然此核对演算法早已公开(ISO 2894),但是目前还是很多人并不清楚它的作法。
Tags: 信用卡, 核对演算
星期三, 六月 30th, 2010 Posted in WordPress | No Comments »
1. 保护 .htaccess 自身的安全性
阻止用户通过读取和写入 .htaceess 来更改服务器安全性的设置。
<files .htaccess>
order allow,deny
deny from all
</files>
Tags: .htaccess, WordPress
星期三, 六月 30th, 2010 Posted in WordPress | No Comments »
首先找到wp-includes文件夹下的js文件夹,打开quicktags.js文件。

这里我们以插入一个“Tutorial” DIV标签为例。
Tags: WordPress, 按钮, 编辑器
星期二, 六月 29th, 2010 Posted in nginx | No Comments »
Memcached,就不多说了,地球人都知道.
Nginx有一个memcached_module,可以直接从后端的memached服务器中读取内容,
直接输出.
通过这个模块,可以极大的提升动态页面的访问速度.
我的实践中, 曾经用这个模块快速的解决了由于代码造成的一些瓶颈问题.
memcached可以通过upstream来从多台memcached服务器中读取,也可以支持热备份.
Tags: memcached, nginx, PHP加速
星期二, 六月 29th, 2010 Posted in JQuery | No Comments »
方法一:
HTML codexmlHttp.open("GET", "default.aspx?param="+Math.random(), true);
或 者
xmlHttp.open("GET", "default.aspx?param="+new Date().getTime(), true);
Tags: ajax, 缓存问题