×

Falcon

  • php_灵活配置session过期时间方法

    需求: 程序中需要自定义session的过期时间,例如:今天想要session过期时间为:10天后,下一个阶段又想要过期时间为:3个月后,那这种需求你总不能每次都去修改php.ini解决吧,那么有没有一劳永逸,而且又很简单的方法呢?当然有了,且看我怎么投机取巧的。 实现: 第一步 从php.ini中设置以下三行内容: 修改三行如...

    2019-12-26 15:28 Falcon 阅读
  • WordPress开发最佳做法

    以下是一些最佳做法来帮助组织您的代码,使其与WordPress核心和其他WordPress插件一起工作良好。 避免命名冲突 当您的插件与变量,函数或类作为另一个插件使用相同的名称时,会发生命名冲突。 幸运的是,您可以通过使用以下方法避免命名冲突。 程序 默认情况下,所有变量,函数和类都在全局命名空间中定义,这意味着插件可以覆盖由另一个插件设置的变量...

    2019-12-18 20:20 Falcon 阅读
  • 定时发布修正0840

    定时发布修正0840

    2019-12-18 08:40 Falcon 阅读
  • 测试一下

    832

    2019-12-18 08:34 Falcon 阅读
  • Google:在搜索结果中屏蔽垃圾网站

    下面是新方法,同时适配 Google, DuckDuckGo, Startpage.com, Bing 和Yahoo的搜索结果,方法如下:   1. 安装油猴扩展(点击这里) ;   2. 安装脚本 Google Hit Hider by Domain (Search Filter / Block Sites)(点击这里);3....

    2019-12-17 00:40 Falcon 阅读
  • CentOS 8.0配置阿里云yum源和epel源

    # cat /etc/redhat-release # cd /etc/yum.repos.d # vim CentOS-AppStream.repo baseurl=https://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/ # vim CentOS-Base....

    2019-12-16 18:47 Falcon 阅读
  • 在Centos8安装Python

    Centos 8 没有默认安装Python,需要自己安装。 安装python3: sudo dnf install python3 确认版本 python3 --version 注意,使用dnf或yum安装python3相关的模块需要在模块前加入python3前缀,如: sudo dnf install python3-paramiko 安装p...

    2019-12-16 18:36 Falcon 阅读
  • Adjusting PHP-FPM for Performance + Low Memory

    PHP-FPM has as a default configuration that uses more memory than necessary. It has spare php-fpm processes ready to go, taking up memory in case there is PHP code to process. Whil...

    2019-12-16 18:08 Falcon 阅读
  • How to Install Docker on CentOS 8

    CentOS 8 comes with its own tools, buildah and podman, which are compatible with existing docker images and work without relying on a daemon, allowing the creation of containers as...

    2019-12-14 18:20 Falcon 阅读
  • Install Docker on Linux

    No matter your distribution of choice, you’ll need a 64-bit installation and a kernel at 3.10 or newer. Kernels older than 3.10 do not have the necessary features Docker re...

    2019-12-13 15:03 Falcon 阅读