随笔分类 -  PHP

上一页 1 2 3 4 5 6 7 8 下一页

PHP - 四级单词lrc文件解析为txt
摘要:原始文件:转换后文件:php代码:首先根据需要更改文件路径。转换后存放的文件要事先创建,为txt文件。核心代码:正则表达式替换: 阅读全文

posted @ 2016-01-03 00:45 ultrastrong 阅读(409) 评论(0) 推荐(0)

PHP - 分页
摘要:效果1:使用代码(page.class.php-分页代码,index.php-页面显示代码,page.css-css样式)page.class.php:total = $_total ? $_total : 1; $this->pagesize = $_pagesize; ... 阅读全文

posted @ 2016-01-02 00:28 ultrastrong 阅读(262) 评论(0) 推荐(0)

PHP - Cookie 应用
摘要:效果:代码: 登录页面 "> 账号: "> ... 阅读全文

posted @ 2016-01-01 17:06 ultrastrong 阅读(200) 评论(0) 推荐(0)

PHP - Cookie
摘要:所使用代码:cookie.phpdelcookie.php使用实例:第一次运行cookie.php页面:刷新cookie.php页面:删除页面delcookie.php页面: 阅读全文

posted @ 2015-12-31 11:33 ultrastrong 阅读(195) 评论(0) 推荐(0)

PHP - SVN(subversion)
摘要:http://www.cnblogs.com/armyfai/p/3985660.html http://www.cnblogs.com/KTblog/p/5153917.html 阅读全文

posted @ 2015-12-28 21:47 ultrastrong 阅读(197) 评论(0) 推荐(0)

PHP - 魔术方法
摘要:name = $name; } /** * 析构函数 */ public function __destruct() { echo '使用析构方法,... 阅读全文

posted @ 2015-12-25 17:43 ultrastrong 阅读(233) 评论(0) 推荐(0)

PHP - 发送短信
摘要:1、购买服务 我购买的是在百度进行推广的API服务。按照要求进行购买就好,之后获取自己的apikey。2、将提供的代码修改后集成到项目中:sendphonemsg($_POST['phoneNumber'], $validNum);?> 阅读全文

posted @ 2015-12-24 22:02 ultrastrong 阅读(380) 评论(0) 推荐(0)

网站页面引导操作 - intro.js
摘要:http://www.cnblogs.com/kgdxpr/archive/2013/08/02/3231920.html 阅读全文

posted @ 2015-12-24 20:55 ultrastrong 阅读(690) 评论(0) 推荐(0)

php - 小型微博系统
摘要:效果:数据库:项目结构:add.php : 添加微博。conn.php : 数据库配置文件。delete.php : 删除博客代码。disinfo.php : 显示微博详细信息。index.php: 主页。update.php:编辑微博。add.php: 添加微博 返回首页 标... 阅读全文

posted @ 2015-12-18 22:06 ultrastrong 阅读(1496) 评论(0) 推荐(0)

CSS - 解决使用浮动,父窗体不能撑高问题
摘要:浮动的父级元素一定要用 clear 清除浮动,否则高度会无法撑开。 阅读全文

posted @ 2015-12-10 16:21 ultrastrong 阅读(249) 评论(0) 推荐(0)

PHP - FTP上传文件类
摘要:/*** 作用:FTP操作类( 拷贝、移动、删除文件/创建目录 )* 时间:2006/5/9* 作者:欣然随风* QQ:276624915*/class class_ftp{ public $off; // 返回操作状态(成功/失败) public $conn_id; // FTP连接 ... 阅读全文

posted @ 2015-12-08 22:31 ultrastrong 阅读(183) 评论(0) 推荐(0)

PHP - 对象转json - json转数组
摘要:前台js转为json,传给php后台,php后台接收并转为数组。 效果: -- 前台js将对象转为json: var rows = JSON.stringify(rows); 后台php接收转为数组: $uploadfiles = json_decode(stripslashes($_POST['u 阅读全文

posted @ 2015-12-06 22:49 ultrastrong 阅读(1163) 评论(0) 推荐(0)

EasyUI - tab动态加载datagrid
摘要:addTab: function() { $("#myTabs").tabs('add', { title: 'my title', closable: true, tools: [{ iconCls: 'icon-mini-re... 阅读全文

posted @ 2015-12-06 13:11 ultrastrong 阅读(975) 评论(0) 推荐(0)

PHP - mysql使用参数数据
摘要:"SELECT dg_id FROM dg_user WHERE dg_username = '{$clean['username']}' LIMIT 1","该用户已经存在!" 阅读全文

posted @ 2015-12-04 23:56 ultrastrong 阅读(302) 评论(0) 推荐(0)

JQuery - 改变css样式
摘要:jQuery提供css()的方法来实现嵌入式改变元素样式,css()方法在使用上具有多样性。其中一种接受两个输入参数:样式属性和样式值,它们之间用逗号分开。比如我们要改变链接颜色,我们可以使用下面的代码:$("#61dh a").css('color','#123456');//这里选择器‘$("#... 阅读全文

posted @ 2015-11-28 21:18 ultrastrong 阅读(2577) 评论(0) 推荐(0)

JS - 按钮倒计时
摘要:效果:html代码:js代码: //倒计时 var wait=60; function time(o) { if (wait == 0) { o.removeAttribute("disabled"); o.value="... 阅读全文

posted @ 2015-11-28 20:56 ultrastrong 阅读(296) 评论(0) 推荐(0)

PHP - session编码和解码
摘要:'; //session解码 session_decode($envar); echo $_SESSION['name']."-".$_SESSION['sex'];?> 阅读全文

posted @ 2015-11-25 20:22 ultrastrong 阅读(1206) 评论(0) 推荐(0)

PHP - 发送邮件
摘要:效果:---------------------------------------------------------------------------------------------------------------------------------------------------... 阅读全文

posted @ 2015-11-24 21:43 ultrastrong 阅读(262) 评论(0) 推荐(0)

PHP - 验证码
摘要:http://www.cnblogs.com/cfinder010/p/3505650.html 阅读全文

posted @ 2015-11-23 13:27 ultrastrong 阅读(129) 评论(0) 推荐(0)

PHP - 验证类
摘要:= $min) ? true : false; break; case 2: //只匹配最大值 return ($max >= $len) ? true : false; break; ... 阅读全文

posted @ 2015-11-23 13:18 ultrastrong 阅读(238) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 下一页