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

WordPress

wordpress接入七牛云存储和CDN加速

由于博客使用了较多的图片,对首页等页面的加载速度影响较大,对用户体验有一定影响。图片我都会在tinypng等网站上压缩一下再使用。但是对于一些颜色丰富的图片,压缩后大小也比较大。由于个人服务器的带宽有限,访问量一多起来就有点捉襟见肘了。于是,最近两天用上了七牛的存储服务和CDN服务。

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.

要执行请求的操作,WordPress需要访问您网页服务器的权限

重新装完wordpress程序后,可能在通过wordpress后台安装插件时碰到页面弹框提示“要执行请求的操作,WordPress需要访问您网页服务器的权限。 请输入您的FTP登录凭据以继续。”,处理方法如下: 假设wordpress程序的根文件夹路径为/var/www/html/domain.com/public_html/wordpress-site,执行下面三步操作:

PHP 阅读(2652)去评论赞(0)

WordPress Plugins Installed

This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from "Hello, Dolly" in the upper right of your admin screen on every page.

PHP 阅读(2134)去评论赞(0)

phpMyAdmin导出数据表失败

如果按以前的习惯,我一般是在自己本地上起一个MySQL服务,将网站上的数据通过phpMyAdmin导出一份副本到本地再通过本地phpMyAdmin导入本地MySQL服务中供本地开发时使用。今天决定借鉴公司后端程序员们的做法,另行创建一个公网可以访问到的数据库作为测试数据库,本地开发时直接连接这个测试数据库,生产环境上则改为正式数据库。

PHP 阅读(2242)去评论赞(0)

登录

找回密码

注册