分类 PHP 下的文章



更改您的网址

UPDATE wp_options SET option_value = replace(option_value, 'http://www.myoldurl.com', 'http://www.mynewurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';

Read more...


笔者在更新自己flarum论坛破晓启航论坛的时候报的错误。如图
php_degrade_mode_error.png

[root@jdu4e00u53f7 html]# composer update
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)

Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info

Read more...


之前的项目都没有问题,重装系统后发现:Parse error: syntax error, unexpected $end.找了半天,竟然忘了GOOGLE一下..原来是这样哦,记录一下.

在PHP文件中如果使用了<?来替代<?php标记PHP代码的开始,并且php.ini中的short_open_tag应该为On
short_open_tag = On

否则就会报异常:Parse error: syntax error, unexpected $end