设计开发

设计是视觉主观形式的表现手段和结果,开发是根据需求设计编写出产品的过程。

解决Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin

解决Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin

登录PhpMyadmin的时候它一直说“Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin”,本文提供3种解决该问题的方法。您可以轻松解决此问题。请按照以下步骤操...

解决A non well formed numeric value encountered

解决A non well formed numeric value encountered

A non well formed numeric value encounteredPHP message: PHP Notice: A non well formed numeric value encountered……,格式错误的数值。从PHP5切到PHP72后报如上错误,官方文档对这种错误的解释:...

WordPress判断用户特定内容只对管理员可见

WordPress判断用户特定内容只对管理员可见

WordPress特定内容只对管理员可见之前判断登录用户的角色用的是current_user_can()方法,比如判断当前用户是否是作者用current_user_can('author'),但对于WordPress 5不再可行。current_user_can的用法变了...

解决MySQL错误:ERROR 1175: You are using safe update mode

解决MySQL错误:ERROR 1175: You are using safe update mode

Error Code: 1175. You are using safe update mode错误提示:正在使用安全更新模式,尝试更新表没有使用键列的where条件。解决方法与,查看当前模式:show variables like 'sql_safe%';原因是...

解决Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl -xe” for details.

解决Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl -xe” for details.

Mysql突然无法启动了,报错:Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.根据提示...

解决MySQL8 #1227 – Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation

解决MySQL8 #1227 – Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation

很奇怪今天MySQL8突然出现一些莫明的错误,比如我昨天在用的帐户,今天操作时报如下错误:1227 - Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation具有root...

如何重新加载/重启php7-fpm/php5-fpm/php-fpm服务

如何重新加载/重启php7-fpm/php5-fpm/php-fpm服务

是Linux和Unix系统的新用户。我想重新加载或重新启动我的PHP-fpm服务。Linux如何重新启动PHP-fpm?如何在Ubuntu Linux 16.04 LTS服务器上重新启动php7.0-fpm?PHP-FPM仅仅是一个简单而强大的PHP FastCGI Pro...

PHP错误open(/var/lib/php/session/sess_x, O_RDWR) failed: Permission denied (13)解决

PHP错误open(/var/lib/php/session/sess_x, O_RDWR) failed: Permission denied (13)解决

突然所有校验token都用不了了,提示token过期或无效,找到log看到如下错误:[ 2019-11-14T22:21:34+08:00 ] xx.xx.xx.xx GET 123.207.97.55:8081/index [ error ] [2]session_start(): open(/var/lib/php/se...

PHP获取路径目录方法汇总

PHP获取路径目录方法汇总

PHP获取路径获取域名或主机地址echo $_SERVER['HTTP_HOST']."<br>";获取网页地址echo $_SERVER['PHP_SELF'];获取网址参数echo $_SERVER["QUERY_STRING"];获取用户代理echo $...

解决jQuery/Ajax同步请求假死或挂起,Ajax return返回undefined解决

解决jQuery/Ajax同步请求假死或挂起,Ajax return返回undefined解决

Ajax假死挂起今天遇到一个页面中默认必须请求一组初始化数据,然后使用了pjax中介,每次进入和离开页面都会造成Ajax假死挂起,很是烦躁,于是有了这篇文章。分享一个超简单的小技巧(细节),却非常实用。虽...