Solutions for possible error prompts in the Z-blogPHP plug-in "Favicon.ico Remote Acquisition API"

image.png

Use our pluginfaviconWhen obtaining the API remotely, the following error prompt may appear:

file_get_contents(/zb_users/plugin/faviconapi/img/get.php?url=https://******): Failed to open stream: HTTP request failed!

Don't worry, it's not a bug.

If you go through Baidu, you will find many articles with the same solutions, but they are generally verbose.

Here are our summary of a more refined solution:

When using the file_get_contents method included in php5 to obtain remote files, sometimes file_get_contents(): : Failed to open stream: HTTP request failed!
Modify php.ini, enable allow_url_fopen, and change it to allow_url_fopen = On
If you don't want to change php.ini, you can change to php7.0 or higher.

In addition, we do not recommend that you use PHP version 8.0 and above, and errors may also be reported.

t like1

Link to this article:https://en.finchui.com/zblog-course/16.html

netizens commented

guess you like

hot commodity
popular articles
hot Tags
related tags
FinchUI Store Edition Hong Kong Special Area

share

copy Link

Xinglan Studioadd friends

Working hours: 9:00-22:00
Saturday and Sunday: 14:00-22:00
wechat
Scan the code to add customer service WeChat