Skip to content

Instantly share code, notes, and snippets.

@tml
Created October 20, 2011 23:29
Show Gist options
  • Save tml/1302705 to your computer and use it in GitHub Desktop.
Save tml/1302705 to your computer and use it in GitHub Desktop.
#!/usr/bin/php
<?php
/**
* Incrementally downloads all comments from DISQUS.
*
* ``php import-comments.php``
*/
require_once(dirname(__FILE__) . '/../lib/wp-cli.php');
require_once(dirname(__FILE__) . '/../disqus.php');
var_dump(ini_get('output_buffering'));
$forum_url = get_option('disqus_forum_url');
if (empty($forum_url)) {
print_line("Disqus has not been configured on this installation!");
die();
}
print_line('---------------------------------------------------------');
print_line('Discovered DISQUS forum shortname as %s', $forum_url);
print_line('---------------------------------------------------------');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment