上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 24 下一页
摘要: function friend_date($time) { if (!$time) return false; $fdate = ''; $d = time() - intval($time); $ld = $time - mktime(0, 0, 0, 0, 0, date('Y')); //得出年 $md = $time - mktim... 阅读全文
posted @ 2018-03-29 10:15 pengcx 阅读(837) 评论(0) 推荐(0) 编辑
摘要: 正确的关机流程为:sync > shutdown > reboot > halt 关机指令为:shutdown ,你可以man shutdown 来看一下帮助文档。 例如你可以运行如下命令关机: 最后总结一下,不管是重启系统还是关闭系统,首先要运行 sync 命令,把内存中的数据写到磁盘中。 关机的 阅读全文
posted @ 2018-03-27 16:30 pengcx 阅读(175) 评论(0) 推荐(0) 编辑
摘要: css图标 阅读全文
posted @ 2018-03-27 11:07 pengcx 阅读(230) 评论(0) 推荐(0) 编辑
摘要: /** * 类名: mobile * 描述: 手机信息类 * 其他: 偶然 编写 */ class mobile{ /** * 函数名称: getPhoneNumber * 函数功能: 取手机号 * 输入参数: none * 函数返回值: 成功返回号码,失败返回false ... 阅读全文
posted @ 2018-03-26 15:28 pengcx 阅读(1021) 评论(0) 推荐(0) 编辑
摘要: 1、防止网站被镜像 现象:他人域名访问到的是我的网站解析的ip地址我的 解决方法: http.ini里可以这样写 .htaccess里可以这样写 代码的意思非常简单:访问这个网站的域名如果不是"www.web.cn"就自动跳转到"www.web.cn"上。这样设置就不怕自己辛辛苦苦维护的网站被别人镜 阅读全文
posted @ 2018-03-26 14:23 pengcx 阅读(250) 评论(0) 推荐(0) 编辑
摘要: set_time_limit(0); global $source_dir; global $target_dir; $source_dir = "D:/images/";//目标路径 $target_dir = 'D:/finish/';//最终路径 /*开始扫描文件夹*/ scan_dir($s 阅读全文
posted @ 2018-03-19 15:27 pengcx 阅读(951) 评论(0) 推荐(0) 编辑
摘要: 来源:http://www.yiichina.com/code/1637 1、数字校正 2、字符串校正 3、特殊需求校正 阅读全文
posted @ 2018-03-15 12:00 pengcx 阅读(256) 评论(1) 推荐(0) 编辑
摘要: 1、git clone git@gitee(github).com:项目地址.git2、cd 项目根目录3、composer install4、如果需要数据迁移,cmd中到项目根目录 php artisan migrate 阅读全文
posted @ 2018-03-14 11:20 pengcx 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 来源:http://laravelacademy.org/post/1374.html 1、入门 Laravel通过Artisan提供了强大的控制台命令来处理非浏览器业务逻辑。要查看Laravel中所有的Artisan命令,可以通过在项目根目录运行: 阅读全文
posted @ 2018-03-09 08:44 pengcx 阅读(186) 评论(0) 推荐(0) 编辑
摘要: $ mkdir filename 创建一个空目录 $ git init 把这个目录变成Git可以管理的仓库 $ pwd 用于显示当前目录 $ cat <file> 查看文件内容$ git status 查看仓库当前的状态 $ git pull 拉取远程代码$ git add <file>或. 提交到 阅读全文
posted @ 2018-03-05 15:36 pengcx 阅读(131) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 24 下一页