立诚勿怠,格物致知
It's all about connecting the dots

标签:php

how to see sql queried by wordpress when opening a page

For learning purpose, it's meaningful to looking at sql sentences queried by Wordpress. But how to do this? Here is the answer. First, edit the wp-config.php file, just add one line of code. Then, find the common footer.php file of your Wordpress theme, add the following code before the ending html tag (attention: here we only allow administrator to see these sql sentences, taking security into consideration). That's all.

nginx支持php(wordpress)和node

nginx配置一下不仅可以做静态服务器,还可以转发请求到服务端本地的端口服务。以前装wordpress这些程序我们会惯例一样地去安装apache,但是如果你装了nginx,就不再需要安装apache了。下面是一个我自己用的配置,我的服务器是centos 7。 这些说明文字有可能有助于你对下面这个配置的理解: 我有两个域名,分别是orzzone.com和yxeye.com; orzzone.com使用的服务是由一个php程序wordpress提供的; yxeye.com使用的服务是由一个node服务提供的,node服务使用的端口号为18080。

登录

找回密码

注册