Support » Plugin: Savrix Play Store » use cURL instead of file_get_contents()

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi, I´ve tried to replace the function, but I am getting an Error:

    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /webs/7/5/70/10/10757/web1/androidtv/wp-content/plugins/savrix-android-market/savrix-android-market.php on line 33

    Any suggestions?

    Greetimgs from germany

    Just curious, what difference would this make?

    Sorry for the late reply.

    @andreas Voetz: You can ignore this warning. CURLOPT_FOLLOWLOCATION isn’t needed and I’ve removed it from the code I’ve linked in the OP.

    @captainstu72: Not all webservers allow opening files on remote servers via file_get_contents(); fopen(); etc. This change tries to fetch the information via PHP’s cURL plugin, which isn’t affected by the described limitations.

    could you post plugin with your changes ?

    Plugin Author savrix85


    Sorry for the late reply. I tried to implement the cURL, but it seems to ignore the Accept Language header. Despite I set “en” or “en-us” as language, it uses the language from the server where the website is located.

    Plugin Author savrix85


    I found why. Google mainly uses the IP to determine in which language to show you the page, so, even if I set accept-language:en, Google sends the page in the server location language.

    Maybe I found a trick to force the language.

    good 😀

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘use cURL instead of file_get_contents()’ is closed to new replies.