Home >CMS Tutorial >PHPCMS >What should I do if phpcms does not support collecting and saving remote images?

What should I do if phpcms does not support collecting and saving remote images?

藏色散人
藏色散人Original
2020-02-03 11:13:133617browse

What should I do if phpcms does not support collecting and saving remote images?

What should I do if phpcms does not support collecting and saving remote images? Solution to DNS resolution failure during PHPCMS V9 installation - collection and saving of remote images is not supported

Some people found that after the phpcms official website stopped parsing, many people installed phpcms v9 and the following error occurred:

What should I do if phpcms does not support collecting and saving remote images?

This is because the domain name used to detect dns resolution is the domain name of the phpcms official website. After the official website domain name stops parsing, the detection will definitely fail. The solution is as follows:

Open the /install/install.php file, line 49 or search $PHP_DNS:

$PHP_DNS = preg_match(“/^[0-9.]{7,15}$/”, @gethostbyname(‘www.phpcms.cn’)) ? 1 : 0;

Inside www.phpcms. Change the cn domain name to the domain name where you are installing V9, or change it to www.baidu.com. No agreement is required, and there is no slash at the end

and that's it.

PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of What should I do if phpcms does not support collecting and saving remote images?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn