
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.






add friends