02 2015 档案

摘要:phpphp-5.4.381.下载 http://windows.php.net/downloads/releases/php-5.4.38-Win32-VC9-x86.zip解压到D:\web\php2. 配置httpd.conf 添加:# 解析phpLoadModule php5_module ... 阅读全文
posted @ 2015-02-27 14:28 osfipin 阅读(175) 评论(0) 推荐(0) 编辑
摘要:PHP清理跨站XSS xss_clean 函数 整理自codeigniter Security由Security Class 改编成函数xss_clean 单文件直接调用。BY吠品。//来自codeigniter 清理跨站XSS xss_clean//Security Class 改编成函数func... 阅读全文
posted @ 2015-02-09 11:57 osfipin 阅读(1524) 评论(0) 推荐(0) 编辑
摘要:ThinkPHP3.2 G函数代码及 使用方法代码:// 内存是否可调用define('MEMORY_LIMIT_ON',function_exists('memory_get_usage'));/** * 记录和统计时间(微秒)和内存使用情况 * 使用方法: * * G('begin'); //... 阅读全文
posted @ 2015-02-08 14:08 osfipin 阅读(2553) 评论(0) 推荐(0) 编辑
摘要:获取数组第一个元素的值,如果是数字索引那还好,直接$array[0],如果键名是字符串,你又未知这个字符串呢?用current()函数就可以做到。current() 函数返回数组中的当前元素(单元)。每个数组中都有一个内部的指针指向它“当前的”元素,初始指向插入到数组中的第一个元素。current(... 阅读全文
posted @ 2015-02-06 13:08 osfipin 阅读(15901) 评论(0) 推荐(0) 编辑
摘要:JS去掉首尾空格 简单方法大全var osfipin= ' http://www.cnblogs.com/osfipin/ ';//去除首尾空格osfipin.replace(/(^\s*)|(\s*$)/g, "");//去除左边空格osfipin.replace(/(^\s*)/g... 阅读全文
posted @ 2015-02-05 11:33 osfipin 阅读(15405) 评论(0) 推荐(0) 编辑
摘要:checkbox全选,反选,取消选择 jquery。//checkbox全部选择$(":checkbox[name='osfipin']").each(function(){ $(this).attr("checked",true);});//checkbox取消全选$(":checkbox[nam... 阅读全文
posted @ 2015-02-05 10:55 osfipin 阅读(266) 评论(0) 推荐(0) 编辑
摘要:条件语句通常在写代码时,您总是需要为不同的决定来执行不同的动作。您可以在代码中使用条件语句来完成该任务。在 JavaScript 中,我们可使用以下条件语句:if 语句- 只有当指定条件为 true 时,使用该语句来执行代码if...else 语句- 当条件为 true 时执行代码,当条件为 fal... 阅读全文
posted @ 2015-02-04 14:42 osfipin 阅读(231) 评论(0) 推荐(0) 编辑
摘要:Install LAMP(Linux + Apache + MySQL + PHP ) for CentOS/Redhat/Fedora项目地址:https://github.com/teddysun/lamp最新版本:2015年01月29日适用环境:系统支持:CentOS/Redhat/Fedor... 阅读全文
posted @ 2015-02-04 13:30 osfipin 阅读(891) 评论(0) 推荐(0) 编辑

我是底部