• Laravel 模型事件入门

    ...

    2018-06-22 05:37:52

  • 获取数据列表

    mvc:V视图 table style ="width: 100%;border: 1px solid #ccc" cellpadding ="1" cellspacing ="1" tr style ="background-color: #AFD2C8" th 产品信息 / th th 型号 / th th 价格 / th th 产品名称 / th th 产地 / th th 操作 / th / tr ? php foreach($porductlis...

    2018-06-22 05:37:52

  • PHP Session 常用的函数

    ...

    2018-06-22 05:37:51

  • 微信小程序调用api接口

    请求的第三方微信url大概有3种 1)$url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=$appidsecret=$appsecretcode=$codegrant_type=authorization_code"; 2)$url = "https://api.weixin.qq.com/sns/oauth2/component/access_token?appid=$appidsecre...

    2018-06-22 05:37:51

  • [日常] Apache Order Deny,Allow的用法

    Order Deny,Allow的用法: 影响最终判断结果的只有两点: 1. order语句中allow、deny的先后顺序,最后的是最优先的; 2. allow、deny语句中各自包含的范围。 常用: Order Deny,Allow Deny from all //禁止所有 Allow from 61.135.152.134 //允许指定ip Order Allow,Deny...

    2018-06-22 05:37:49

  • Laravel 5.5 官方推荐 Nginx 配置学习

    Laravel 5.5 版本官方放出了 Nginx 服务器的配置,中文文档:服务器配置 Nginx server { listen 80; server_name example.com; root /example.com/public; add_header X-Frame-Options "SAMEORIGIN" ; add_header X-XSS-Protection "1; mode=block" ; add_header X-Con...

    2018-06-22 05:37:49

  • PHP 引用是个坑,请慎用

    ...

    2018-06-22 05:37:48

  • 重新编译安装swoole支持OpenSSL

    1、下载:wget http://pecl.php.net/get/swoole-1.9.22.tgz 2、解压:tar zxvf swoole-1.9.22.tgz 3、扩展模块:cd swoole-1.9.22 phpize 4、编译安装:./configure --enable-openssl --with-php-config=/usr/local/php/bin/php-config make make install 这里需要说明...

    2018-06-22 05:37:47

  • HTTP缓存带来的“bug”--HTTP 协议 Cache-Control

    ...

    2018-06-22 05:37:47

  • Session 的原理及最佳实践

    ...

    2018-06-22 05:37:47

2