摘要: 来源:http://blog.snsgou.com/post-670.html按照如下教程:LAMP一键安装包-CentOS 5/6下自动编译安装Apache、MySQL、PHP在虚拟机的CentOS5.5中,一键安装了PHP运行环境,但发现并没有 soap 扩展,而近期项目用需要用到 webservice。上述的一键安装(lamp0.4),其实是源码编译安装,PHP配置文件的路径为/etc/php.ini,安装后,遗留的文件目录为 “/home/jianbao/2/lamp0.4”,里面的文件列表为:[root@localhost lamp0.4]# ll总计 59296-rw-r--r-- 阅读全文
posted @ 2014-01-31 22:28 凹甲 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 技术文档请参考http://dev2.baidu.com/docs.do?product=2#page=File,和http://dev2.baidu.com/docs.do?product=2#page=file1,http://dev2.baidu.com/docs.do?product=2#page=Request_Header因为在每次访问API时,您需要提供您的token(权限代码)以及要操作的用户名和密码来进行权限认证。那么如何验证?请看下面的代码:class Baidu_api { //soap连接标识 private $soap_client; pub... 阅读全文
posted @ 2014-01-06 11:57 凹甲 阅读(628) 评论(1) 推荐(0) 编辑
摘要: 一)如何整合?// change the following paths if necessary$yii = dirname(__FILE__).'/framework/yii.php';$config = dirname(__FILE__).'/protected/config/main.php';// remove the following line when in production modedefined('YII_DEBUG') or define('YII_DEBUG',true);// specify how 阅读全文
posted @ 2014-01-03 15:00 凹甲 阅读(267) 评论(0) 推荐(0) 编辑
摘要: FROM:http://mwop.net/blog/267-Getting-started-writing-ZF2-modules.htmlGetting started writing ZF2 modulesDuringZendConthis year, wereleased 2.0.0beta1ofZend Framework. The key story in the release is the creation of a new MVC layer, and to sweeten the story, the addition of a modular application arc 阅读全文
posted @ 2013-12-09 16:38 凹甲 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 源自:http://phpjs.org/functions/ 阅读全文
posted @ 2013-10-21 11:45 凹甲 阅读(186) 评论(0) 推荐(0) 编辑
摘要: nslookupnslookup可以指定查询的类型,可以查到DNS记录的生存时间还可以指定使用那个DNS服务器进行解释。在已安装TCP/IP协议的电脑上面均可以使用这个命令。主要用来诊断域名系统(DNS) 基础结构的信息。 阅读全文
posted @ 2013-10-11 10:42 凹甲 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 因为A标签是没有内容的,在IE浏览器中点击的时候会直接点到flash上,达不到覆盖的效果。所以我们要加上http://images.cnitblog.com/blog/463120/201310/25094759-1feff30a451b40629309ba25e7fa8b45.gifbackground: url('http://xx.xx.com/images/blank.gif') repeat scroll 0 0 rgba(0, 0, 0, 0);来填充内容,这样就可以点击了。 阅读全文
posted @ 2013-09-27 17:37 凹甲 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1、不在服务器中的访问,如file:///C:/Users/yx/Desktop/index.html这样的地址,ajax是无法访问的,不会执行send();必须放到服务器才可以。2、阻止正常提交var evt = evt || window.event;event.preventDefault();3、jsonp当连续两次使用同一个callback的时候会冲突报错,如下:会报filightHandler is not defined $.ajax({ type: "get", async: false, url: "#", d... 阅读全文
posted @ 2013-08-21 10:31 凹甲 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1、判断是否正确的日期格式/** * 是否正确的日期 * * @access public */ private function _isdate($str,$format="Y-m-d H:i") { $strArr = explode("-",$str); if(empty($strArr)) { return false; } foreach($strArr as $val) { if(strlen($val) 10... 阅读全文
posted @ 2013-08-21 10:17 凹甲 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 1.类似php的htmlspecialchars函数,如需要可以自行增加其它代替function _htmlspecialchars(str) { str = str.replace(/&/g, '&'); str = str.replace(//g, '>'); str = str.replace(/"/g, '"'); str = str.replace(/'/g, '''); return str;}2、浏览器判断function g 阅读全文
posted @ 2013-08-20 10:04 凹甲 阅读(237) 评论(0) 推荐(0) 编辑