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

fsockopen does not work #12

Open
ceefour opened this issue Dec 16, 2011 · 0 comments
Open

fsockopen does not work #12

ceefour opened this issue Dec 16, 2011 · 0 comments

Comments

@ceefour
Copy link

ceefour commented Dec 16, 2011

I need to have curl extension enabled to make it work properly.

If curl is disabled, fsockopen is used and it fails because Disqus server always returns 400 Bad Request HTTP error.

Code is:

require 'disqus-php/disqusapi/disqusapi.php';

$disqus = new DisqusAPI(DISQUS_SECRET_KEY);
$threads = $disqus->trends->listThreads();
var_dump($threads);
@gabalafou gabalafou reopened this Dec 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants