disqus-php icon indicating copy to clipboard operation
disqus-php copied to clipboard

fsockopen does not work

Open ceefour opened this issue 13 years ago • 0 comments

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

ceefour avatar Dec 16 '11 11:12 ceefour