摘要: mysqli::set_charsetmysqli_set_charset(PHP 5 >= 5.0.5)mysqli::set_charset--mysqli_set_charset—Sets the default client character setReport a bug说明面向对象风格boolmysqli::set_charset(string$charset)过程化风格boolmysqli_set_charset(mysqli$link,string$charset)Sets the default character set to be used when sendin 阅读全文
posted @ 2013-08-28 16:21 竹三戒 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: 需开启gdindex.php 1 cutOutsidePic("cut1.jpg",800,600,1); 6 $i->cutOutsidePic("cut2.jpg",800,600,2); 7 $i->cutOutsidePic("cut3.jpg",800,600,3); 8 9 $i->cutOutsidePic("cut4.jpg",800,600,4);10 $i->cutOutsidePic("cut5.jpg",800,600,5);11 $i->c 阅读全文
posted @ 2013-08-28 16:09 竹三戒 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 此文为转载 原始地址 木有了============================ 阅读全文
posted @ 2013-08-28 16:02 竹三戒 阅读(164) 评论(0) 推荐(0) 编辑
摘要: shift:删除原数组第一项,并返回删除元素的值;如果数组为空则返回undefined var a = [1,2,3,4,5]; var b = a.shift(); //a:[2,3,4,5] b:1unshift:将参数添加到原数组开头,并返回数组的长度 var a = [1,2,3,4,5]; var b = a.unshift(-2,-1); //a:[-2,-1,1,2,3,4,5] b:7 注:在IE6.0下测试返回值总为undefined,FF2.0下测试返回值为7,所以这个方法的返回值不可靠,需要用返回值时可用splice代替本方法来使用。pop:删除原数组最后一项,并返回删除 阅读全文
posted @ 2013-08-28 16:00 竹三戒 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 转自:http://hi.baidu.com/jiang_yy_jiang/item/365f6ba9a98ca1756cd4558b虽然 Jscript 并不直接支持多维数组,但是可以在数组元素中存储任意种类的数据 — 包含其他数组。所以通过在另一个数组的元素里存储其他数组可以得到多维数组的特性。例如,下面的代码为最大为 5 的数字建立了乘法表:// 若是更大的表改变本数var iMaxNum = 5;// 循环计数var i, j;// 新数组。由于数组从 0 开始计数,// 而不是 1,所以数组大小为 iMaxNum + 1。var MultiArray= new Array(iMaxN 阅读全文
posted @ 2013-08-28 15:58 竹三戒 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 js 文本框获取丢失焦点 6 18 19 20 21 22 23 24 25 ====================================== 1 2 3 4 5 js 文本框获取丢失焦点 6 16 17 18 19 20 21 22 23 阅读全文
posted @ 2013-08-28 15:52 竹三戒 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 6 7 31 43 44 45 46 47 阅读全文
posted @ 2013-08-28 15:48 竹三戒 阅读(1255) 评论(0) 推荐(0) 编辑
摘要: 一. 算法逻辑(以升序排列为例)(1). 从第一项开始, 依次与数组中所有项(包括它自己)逐个进行比较, 如果当前项(当前项是每次比较之后的最大值)大于下一项, 则交换两者的位置;(2). 每一轮比较完成之后, 最大值都会被放在合适的位置: a. 第一轮比较完成时, 最大值成为数组的最后一项; b. 第二轮比较完成时(第二轮比较会将数组最后一项排除在外), 第二大的值会成为数组的倒数第二项; c. 第三轮比较完成时(第三轮比较会将数组最后两项排除在外), 第三大的值会成为数组的倒数第三项; ...二. codefunction sortMethod(arr) {// 交换两个数... 阅读全文
posted @ 2013-08-28 15:45 竹三戒 阅读(694) 评论(0) 推荐(0) 编辑
摘要: mysqli_set_charset($this->connection, "utf8"); 阅读全文
posted @ 2013-08-28 15:43 竹三戒 阅读(161) 评论(0) 推荐(0) 编辑
摘要: ffmpeg 下载地址ffmpeg.exe -i F:\娱乐\动力之歌.mp3 -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 f:\11.flvffmpeg -i F:\01.wmv -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 f:\test.flv使用-ss参数 作用(time_off set the start time offset),可以从指定时间点开始转换任务。如:转换文件格式的同时抓缩微图:ffmpeg -i "test.avi" -y -f image2 -ss 8 -t 0.001 - 阅读全文
posted @ 2013-08-28 15:40 竹三戒 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Spry 敏捷的 活泼的 Widget 构件 Tabbed 选项卡式的 Panel 面板element 单元,元素binding 绑定hover 悬停focus 焦点visible 可见的current 当前的visible 可见的current 当前的Navigation 导航Option 选项express 明确的property 特性,性能,属性attach 赋予;粘上 Behavior 状态,行为,特点,性能proto- 【前缀】 表示"最初";"原";"原始"push 推,按,压,进(栈)ignore 不管,忽略不计 Pro 阅读全文
posted @ 2013-08-28 15:38 竹三戒 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 好像是 discuz 6.0迫于老板的需求 要给公司论坛发帖 好吧 程序灌水需要 开启 pdo 1 "SET NAMES utf8"));32 $pdo->exec("insert into forum_threads (fid, author, authorid, subject, dateline, lastpost, lastposter, recommends, recommend_add, recommend_sub) values ($fid, '$author', $authorid, '$subject', $ 阅读全文
posted @ 2013-08-28 15:31 竹三戒 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 这是神马样式 完全看不懂嘛 1 2 3 4 5 44 45 46 47 48 49 ffffffffffffffff 50 ffdfa 51 s 52 asdf 53 54 r4t6 55 6345 56 6rt 57 h 58 56 59 8u5 60 8i 61 8 62 63 u6r 64 uy7567 65 567 66 5 6... 阅读全文
posted @ 2013-08-28 15:23 竹三戒 阅读(272) 评论(0) 推荐(0) 编辑
摘要: CI框架中Unable to locate the model you have specified:*_model解决方法今天写好了ci框架版,但是上传到网站的时候显示错误, 想着本地上面一点问题也没有,所以觉得很纳闷,用notapad++的全局搜索查看去了全部文件夹内容没找到mindex,百度了下,发现原来是文件命名问题, 在windows显示是没问题的,可是一传到linux主机上,由于文件名关系就出错了。$this->load->model('Mindex');这个也是错的,应该是$this->load->model('mindex' 阅读全文
posted @ 2013-08-28 15:20 竹三戒 阅读(1190) 评论(0) 推荐(0) 编辑
摘要: 通过设置 config/config.php 文件,你可以为 CodeIgniter 生成的 URL 添加一个指定的文件后缀。举例来说,如果 URL 是这样的:example.com/index.php/products/view/shoes你可以随意添加一个后缀,例如 .html,使其显示为:example.com/index.php/products/view/shoes.html(icebird注:英文中由于参数可直接看懂其含义,并未说明应修改哪个参数,在这里应修改$config['url_suffix']这个参数。) 阅读全文
posted @ 2013-08-28 15:18 竹三戒 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 引领科技为您讲解配置 codeigniter,codeigniter 基本配置信息在 application/config/config.php 文件,本文详细讲解每一个基本配置选项,从而快速掌握 codeigniter 进行开发。$config['base_url'] = "http://www.example.com/" 您网站的网址,codeigniter 会根据这个网址来生成链接、表单地址等。$config['index_page'] = "index.php" codeigniter 根目录下的 index.ph 阅读全文
posted @ 2013-08-28 15:17 竹三戒 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 删除 index.php 文件example.com/index.php/news/article/my_article的通过 .htaccess 文件来设置一些简单的规则删除它RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php/$1 [L] 阅读全文
posted @ 2013-08-28 15:16 竹三戒 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 默认情况下,CodeIgniter 中的 URL 被设计成对搜索引擎和人类友好。不同于使用标准“查询字符串”方法的是,CodeIgniter 使用基于段的方法:example.com/news/article/my_article注意:查询字符串形式的 URL 是可选的,分述如下。URI 段根据模型-视图-控制器模式,在此 URL 段一般以如下形式表示:example.com/class/function/ID第一段表示调用控制器类。第二段表示调用类中的函数或方法。第三及更多的段表示的是传递给控制器的参数,如 ID 或其他各种变量。 阅读全文
posted @ 2013-08-28 15:15 竹三戒 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 每个大牛 都是 山炮 进化来的========================在视图 fuck.php里 直接 1 2 3 4 5 sssssss 6 7 8 load->view('fuck_head.php');?> 9 load->view('fuck_content.php');?>10 load->view('fuck_footer.php');?>11 load->view('fuck_content');?>12 13 阅读全文
posted @ 2013-08-28 15:14 竹三戒 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 吹牛吹上天 挂件小功能 待改进============/application/controllers/welcome.php 1 load->helper('url'); 6 $index['title'] = "这是标题"; 7 $index['data']['1'] = array('1','2','3'); 8 $index['data']['2'] = array('11','22', 阅读全文
posted @ 2013-08-28 15:13 竹三戒 阅读(239) 评论(0) 推荐(0) 编辑