disqus/disqus-php — Issue #12: fsockopen does not work
Author: ceefour
Created: 2011-12-16 11:37:20+00:00
State: open

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);