Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = 'http://www.kaskus.co.id/thread/57ec906ea2c06e78448b457a/waaa-mimin-nyebarin-cendol-emas-di-kaskus/';
- $bla = curl_init();
- curl_setopt($bla, CURLOPT_URL, $url);
- curl_setopt($bla, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($bla, CURLOPT_HEADER, false);
- $result = curl_exec( $bla );
- curl_close($bla);
- preg_match_all('/<img src="http:\/\/s.kaskus.id\/images\/smilies\/smilies(.*?)class="plus gp__icon"(.*?)\/>/i', $result, $smile);
- unset($result);
- preg_match_all('/<img src="http:\/\/s.kaskus.id\/images\/smilies\/smilies(.*?)\/>/i', $smile[0][0], $smile);
- foreach($smile[0] as $cendol) {
- if( preg_match('/plus gp__icon/',$cendol) ) echo $cendol."<br>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment