Skip to content

Instantly share code, notes, and snippets.

@GiovanniK
Created April 6, 2014 06:57
Show Gist options
  • Save GiovanniK/10002378 to your computer and use it in GitHub Desktop.
Save GiovanniK/10002378 to your computer and use it in GitHub Desktop.
Make Apache work the CPU
<?php
// make sure the trackback ping's URL links back to us
$handle = fopen($url, "r");
$tb_page = '';
while (!feof($handle)) {
$tb_page .= fread($handle, 8192);
}
fclose($handle);
$pos = strpos($tb_page, "http://imgur.com");
if ($pos === false) {
$error_code = 1;
send_response(1, "No link found to this site.");
exit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment