'.$last_run; $record = mysql_query($query); while ( $row = mysql_fetch_array($record, MYSQL_NUM)) { $post_url = "http://trilema.com/".$row[0]."/".$row[1]; // echo "

",$post_url,"

"; $dom = new DOMDocument(); @$dom->loadHTML($row[2]); $xpath = new DOMXPath($dom); $hrefs = $xpath->evaluate("/html/body//a"); for ($i = 0; $i < $hrefs->length; $i++) { $href = $hrefs->item($i); $url = $href->getAttribute('href'); $parse = parse_url($url); echo 'curl -A "Mozilla/5.0" -r 0-4096 --connect-timeout 30 --max-time 10 "http://'; echo $parse['host']; echo '/xmlrpc.php" --header "Content-Type: text/xml" --data "pingback.ping'; echo $post_url; echo ''; echo $url; echo '"'."\n"; } } ?>