摘要: 前置条件 1、检查php环境是否安装opcache 扩展 phpinfo() 2、检查 opcache.enable = on 是否打开 laravel框架中opcache的使用: 前面提到,opcache.validate_timestamps 设置为 0 的话我们需要在每次修改 PHP 代码后手 阅读全文
posted @ 2020-11-16 11:53 丶静秋枫 阅读(338) 评论(0) 推荐(0)
摘要: 使用static关键词定义static变量 方法等。 比如 public/protected/private static $a = 1; public/protected/private static function funname(){}; 使用双冒号作为作用域限定操作符,self::$a s 阅读全文
posted @ 2020-11-16 11:52 丶静秋枫 阅读(154) 评论(0) 推荐(0)
摘要: 开发常用 phpinfo print_r exit var_dump var_export empty isset unset is_null 类型判断 is_array is_iterable 可以判断对象 数组 继承了迭代器的都可以判断为true is_numeric is_string is_ 阅读全文
posted @ 2020-11-16 11:49 丶静秋枫 阅读(66) 评论(0) 推荐(0)
摘要: Nginx实现简单的负载均衡 阅读全文
posted @ 2020-11-13 17:18 丶静秋枫 阅读(70) 评论(0) 推荐(0)