A colleague asked this in the morning: I just found out.
PHP environment compatibility --
Content Encoding Error
The page you are trying to view cannot be displayed because it uses an invalid or unsupported compression format.
Contact the website owner to inform you of this problem.
I have encountered the same problem before. I remember it was caused by PHP code ob_start ('ob _ gzhandler'). There are two causes,
- The server does not support this compression format. You can use function_exists ('ob _ gzhandler') to determine the compression format. solution:
Change ob_start ('ob _ gzhandler') to ob_start ();
- When ob_start ('ob _ gzhandler') is used, the previous content is output, and the previous content and require are checked.
Include the content of the call file. If it cannot be found, you can use ob_start () before calling other files.
Ob_end_clean
()
To clear the output content;
After checking, my problem lies in the set_magic_quotes_runtime () function, prompting the Content Function
Set_magic_quotes_runtime () is
Deprecated. The cause of this prompt is that this feature has been disabled after php5.3 and has been completely removed from PhP6, that is, this function does not exist. You can comment
Or delete the row with an error, or add the @ symbol before set_magic_quotes_runtime.
Note that php5.30 is not supported by default. <? = $ Username;?> This syntax requires the use of the output variable &
Lt ;? PHP echo $ username;?> Syntax. You can set the short_open_tag in PHP. ini
On, so that you can be compatible with the original syntax.