随笔分类 -  php

时间函数strtotime的强大
摘要:转载:php的strtotime举例-lsstarboy-ChinaUnix博客 1、上周日午夜 strtotime("last sunday"); 2、本周日午夜 strtotime("this sunday"); 3、今天午夜 strtotime("today"); 4、昨天午夜 strtoti 阅读全文

posted @ 2021-07-08 11:33 明蓝 阅读(402) 评论(0) 推荐(0)

/usr/bin/install: cannot create regular file `/usr/local/jpeg6/include/jconfig.h'
摘要:出现下列异常: /usr/bin/install -c -m 644 jconfig.h /usr/local/jpeg6/include/jconfig.h /usr/bin/install: cannot create regular file `/usr/local/jpeg6/include 阅读全文

posted @ 2020-03-20 14:15 明蓝 阅读(1877) 评论(0) 推荐(0)

linux安装php7.2.7
摘要:转载:https://www.cnblogs.com/chancy/p/9238149.html 1、下载php 官网下载:#wget http://cn2.php.net/get/php-7.2.7.tar.gz/from/a/mirror。(ps:应该是这么下载的,但是我下载的都是一个mirro 阅读全文

posted @ 2020-03-20 11:50 明蓝 阅读(566) 评论(0) 推荐(0)

final 关键字!限定某个类或者方法不允许被继承或者修改
摘要:限定某个类或者方法不允许被继承或者修改,不允许修饰属性! 阅读全文

posted @ 2019-09-12 17:45 明蓝 阅读(606) 评论(0) 推荐(0)

thinkphp和laravel 事务/锁的使用
摘要:thinkphp 自动控制事务处理 Lock方法是用于数据库的锁机制,如果在查询或者执行操作的时候使用: 就会自动在生成的SQL语句最后加上 FOR UPDATE或者FOR UPDATE NOWAIT(Oracle数据库)。 lock方法支持传入字符串用于一些特殊的锁定要求,例如: 也可以手动控制事 阅读全文

posted @ 2019-09-12 16:16 明蓝 阅读(882) 评论(0) 推荐(0)

php不常见但很实用的函数
摘要:echo number_format(memory_get_usage()); 输出运行内存(单位字节 阅读全文

posted @ 2019-09-12 16:09 明蓝 阅读(146) 评论(0) 推荐(0)

魔术方法__call简单总结和使用
摘要:__call(参数1【调用的方法】,参数2【调用的参数】) 当调用的方法不存在是触发,可用于防止url乱输入使用、跳转404等 __callStatic 这个是用于静态方法! 阅读全文

posted @ 2019-09-12 15:52 明蓝 阅读(329) 评论(0) 推荐(0)