Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PiwikTracker: curl support #1574

Closed
anonymous-matomo-user opened this issue Aug 11, 2010 · 4 comments
Closed

PiwikTracker: curl support #1574

anonymous-matomo-user opened this issue Aug 11, 2010 · 4 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

PiwikTracker not working on many shared hosting server, because external file_get_contents($url) not working with allow_url_fopen = false.

-> Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /xxxx/.xxxx/xxxx/index.php on line xx

Bugfix:
Now using Curl

Line 292....

        if(function_exists('curl_open')) {
            $ch = curl_init();
            curl_setopt($ch, CURLOPT_URL, $url);
            curl_setopt($ch, CURLOPT_TIMEOUT, 8);
            curl_setopt($ch, CURLOPT_HEADER, 0);
            $response = curl_exec ($ch);
        } else {
            $response = file_get_contents($url, 0, $ctx);
        }   

Keywords: tracker api

@anonymous-matomo-user
Copy link
Author

Attachment:
PiwikTracker.patch

@anonymous-matomo-user
Copy link
Author

Attachment:
PiwikTracker.2.patch

@robocoder
Copy link
Contributor

(In [2910]) fixes #1574

@robocoder
Copy link
Contributor

(In [2911]) refs #1574

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 0.9.9 - Stable release milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants