The incredible y2karlulator!

by tss. DANGER: quick hack. Will not be improved!

URL: http://www.metafilter.com/mefi/

Please stick to numerical topic numbers only.'; return; } $url = 'http://www.metafilter.com/mefi/' . $_GET['url']; $thread = file($url); if(!$thread) { echo "

Sorry--can't open $url right now. Try again later?

"; return; } for($i=0; $i')) break; if($i == count($thread)) { echo "

Sorry--can't find the link text in this post. Oh well; such are quick hacks.

"; return; } $linktext = $thread[$i + 3]; unset($thread); echo "

Results

\n"; echo "First the original link text:\n
\n$linktext\n
\n"; echo "Now the processed links with titles exposed:\n
\n"; $links = preg_split('/\<\/a\>/i', $linktext); foreach($links as $link) { echo "
$link"; if(preg_match('/\'; echo "
\n"; if(preg_match('/title="(.+)"/', $link, $title)) echo "

$title[1]

\n"; } echo "

$url was y2karlulated ". date("Y-m-d H:i:s") ."\n"; } ?>