上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 35 下一页
摘要: 官方文档:http://www.php.net/manual/zh/function.curl-setopt.php#10692官方举例:由于业务原因,后台登陆需要使用SSL双向认证,即web服务器有证书,浏览器客户端也需要安装证书然后这样的话,php接口文件就需要走443端口来访问了直接附上代码: /** * @name ssl Curl Post数据 * @param string $url 接收数据的api * @param string $vars 提交的数据 * @param int $second 要求程... 阅读全文
posted @ 2014-03-25 12:04 FreeSpider 阅读(32767) 评论(0) 推荐(0) 编辑
摘要: 简单的html5 File测试 for pic2base64 阅读全文
posted @ 2014-03-24 18:40 FreeSpider 阅读(6931) 评论(0) 推荐(0) 编辑
摘要: 63 || strlen($aDomain[0]) = 0x80) { if ((ord($sInBuf{$i}) >= 0x81 && ord($sInBuf{$i}) = 0x40 && ord($sInBuf{$i + 1}) 0x7E && ord($sInBuf{$i + 1}) 0xA0 && ord($sInBuf{$i}) < 0xAA) {//有中文标点 return FALSE; } } else {//有日文或其它文字 ... 阅读全文
posted @ 2014-03-12 10:55 FreeSpider 阅读(2783) 评论(0) 推荐(0) 编辑
摘要: 一、Yii操作数据库的几种选择1,PDO方式。$sql = "";//原生态sql语句xx::model()->dbConnection->createCommand($sql)->execute();2,Active Record方式(1)New$post=new Post;$post->title='sample post';$post->content='post body content';$post->save();(2)Criteria方式也可以使用 $condition 指定更复杂的查询条件。 阅读全文
posted @ 2014-02-24 17:17 FreeSpider 阅读(3565) 评论(0) 推荐(0) 编辑
摘要: function days_in_month($month, $year) { // calculate number of days in a month return $month == 2 ? ($year % 4 ? 28 : ($year % 100 ? 29 : ($year % 400 ? 28 : 29))) : (($month - 1) % 7 % 2 ? 30 : 31); } 阅读全文
posted @ 2014-02-12 14:24 FreeSpider 阅读(2953) 评论(0) 推荐(0) 编辑
摘要: "; echo $str; ?> 阅读全文
posted @ 2014-01-27 14:11 FreeSpider 阅读(1075) 评论(0) 推荐(0) 编辑
摘要: 无标题文档 sdf asdfasdf sadfsf 当然, 还有几种其他的办法, 自己能懂就好 阅读全文
posted @ 2014-01-07 14:15 FreeSpider 阅读(401) 评论(0) 推荐(0) 编辑
摘要: filters()方法定义在CController里,用Gii生成Controller时里面就有filters方法,代码如下:public function filters(){ // return the filter configuration for this controller, e.g.: return array( 'inlineFilterName', array( 'class'=>'path.to.FilterClass', 'propertyName'=>'propertyValue 阅读全文
posted @ 2013-12-25 11:03 FreeSpider 阅读(8007) 评论(0) 推荐(0) 编辑
摘要: 开始准备Yii提供了强大的配置机制和很多现成的类库。在Yii中使用RBAC是很简单的,完全不需要再写RBAC代码。所以准备工作就是,打开编辑器,跟我来。设置参数、建立数据库在配置数组中,增加以下内容:‘components‘ => array(//……‘authManager‘=>array(‘class‘=>‘CDbAuthManager‘,//认证类名称‘defaultRoles‘=>array(‘guest‘),//默认角色‘itemTable‘ => ‘pre_auth_item‘,//认证项表名称‘itemChildTable‘ => ‘pre_a 阅读全文
posted @ 2013-12-23 16:21 FreeSpider 阅读(602) 评论(0) 推荐(0) 编辑
摘要: function nl2p($string, $line_breaks = true, $xml = true){ // Remove existing HTML formatting to avoid double-wrapping things $string = str_replace(array('', '', '', ''), '', $string); // It is conceivable that people might still want single line-breaks // with 阅读全文
posted @ 2013-12-17 09:28 FreeSpider 阅读(3656) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 35 下一页