Skip to content

Instantly share code, notes, and snippets.

@funivan
Created December 20, 2012 10:58
Show Gist options
  • Select an option

  • Save funivan/4344625 to your computer and use it in GitHub Desktop.

Select an option

Save funivan/4344625 to your computer and use it in GitHub Desktop.
public function getHtml($url, $follow = true, $level = 100) {
echo "\n\n=======GET====================\n";
echo $url . "\n";
echo "\n";
return parent::getHtml($url, $follow, $level);
}
public function postHtml($url, $post, $follow = true, $level = 5) {
echo "\n\n=======POST====================\n";
echo $url . "\n";
echo '<pre>' . __LINE__ . '***' . print_r($post, true) . '</pre>';
echo "\n";
return parent::postHtml($url, $post, $follow, $level);
}
public static function createHtmlObj($page, stdClass $info) {
echo "\n=======RESPONSE====================\n";
// echo '<pre>' . __LINE__ . '***' . print_r($info, true) . '</pre>';
echo $page . "\n";
return parent::createHtmlObj($page, $info);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment