Jump to content

Configure Ebay (can't open)


mgsg

Recommended Posts

Hi,

 

when trying to configure the Ebay module in Modules and Services, I get the following error message:

"...you must enable allow_url_fopen option on your server if you want to use this module..."

 

I contacted my hosting company (Namesco) to ask if they enable this and below is their reply and a possible solution(?)....

 

===========from Namesco=============

allow_url_fopen is disabled across all our shared hosting platform, as it poses a security risk from badly-written or malicious scripts. This is a platform-wide setting and cannot be modified.

If you want to include files from third-party sites, then you need to change the code to use PHP's curl() functions instead.

For example:

$file = file_get_contents("http://www.example.com/page.html");

would become:

$url = 'http://www.example.com/page.html"';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$file = curl_exec($ch);
curl_close($ch);

===================================

 

I wanted to ask anybody here if they may have tried changing the code as described above and whether this worked.

 

If so, could someone also tell me the name of the file that needs to be changed, also the location (path?) where I can find it (in file manager).

 

Thanks for any help and advice.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...