Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #config
- $cxt2 = "jpg";
- $cxt = "jpeg";
- $url = "http://";
- $f = file_get_contents($url);
- $pat = '/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i';
- preg_match_all($pat,$f ,$anu);
- foreach($anu[0] as $phc)
- {
- #cek extension
- $cekjpg2 = stripos($phc, $cxt);
- $cekjpg = stripos($phc, $cxt2);
- if($cekjpg > 0 || $cekjpg2 > 0)
- {
- echo $phc."<br />";
- }
- }
- ?>
Add Comment
Please, Sign In to add comment