Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <base target="read">
- <?php
- require_once('htmlparser.inc');
- $WORD = rawurlencode($_GET['res']);
- print "検索語句:".rawurldecode($WORD)."<br>";
- $URL = ("https://find.2ch.net/?COUNT=30&STR=" ."$WORD");
- $htmlText = @file_get_contents( "$URL" );
- $parser = new HtmlParser ($htmlText);
- while ($parser->parse())
- {
- $value = $parser->iNodeValue;
- if($parser->iNodeName = "a" && str_replace("test/read","",$parser->iNodeAttributes['href']) != $parser->iNodeAttributes['href'] && $parser->iNodeValue)
- print "<a href=http://localhost/rep2/read.php?&url=".$parser->iNodeAttributes['href'].">$value</a><br>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment