Hi
I installed WP and everything works pretty well. Now I want to use the WordPress stats plugin. When I try to enter the API-Key it says, that it cannot establish a connection to wordpress.com, due to an inability to open a socket. After a research at my hoster's support I now know, that due to security reasons the whole socket-thing is blocked. But they said there is a possibility using curl. I even found some piece of PHP-Code to use Akismet with curl. But as I said: I want to use WordPress stats. And my hoster's support is not able to help me.
I guess my problem is not that unique, so I hope that someone can provide the right code, or at least some good ideas.
Thank you in advance,
Jan
*push*
Is there really *noone* here, to provide any help? Is it really only me having that Problem?
Jan
softclean
Member
Posted 3 years ago #
Unfortunately, i can't help you. I just want share the same problem.
I can't even use CURL lib, neither sockets. Since the data of stats is always sent to WP server, i think there's no workaround to do it without curl or sockets.
I tried a search and found this:
http://lorelle.wordpress.com/2007/02/12/counting-wordpress-statistics-wordpress-plugins/
Maybe some of those extensions work with you. Good luck.
No, the stats plugin does not use, and cannot use, CURL. Ditto Akismet.
If your host doesn't support fsockopen (sockets), then switch hosts. Removing socket capabilities does not improve security.
But there *are* sourcecodes providing the curl-solution for Akismet. So I guess something similar might be available for the stats-plugin as well...
http://code.google.com/p/akismet-php-curl-class/source/browse/trunk/akismet.curl.class.php