Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Warning: file_get_contents() alternative with curl

$
0
0

Replies: 0

Hi,

we like ur plugin, but since some server security configurations, we have troubles, because

“Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0”

file_get_contents(http://paypalnotice.inpsyde.com/): failed to open stream: no suitable wrapper could be found

Type: PHP Warning Line: 47
File: /wp-content/plugins/woo-paypalplus/src/Notice/Admin.php

Can you please provide a check for alternative _getter like curl, because more security as file_get_contents like below:

if(function_exists(‘curl_init’)) { // prefer curl

} elseif(ini_get(‘allow_url_fopen’)) { // alternative file_get_contents

}

With best regards,
Alex

  • This topic was modified 5 minutes ago by itdahdev. Reason: wrong url

Viewing all articles
Browse latest Browse all 59525

Trending Articles