Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///////////////////// ПОЛУЧИТЬ ВСЕ IMG ССЫЛКИ НА PHP /////////////////////
- $file_content = file_get_contents("http://htmlweb.ru/index.php");
- preg_match_all("/(<img )(.+?)( \/)?(>)/",$file_content,$images);
- foreach ($images[2] as $val)
- {
- if (preg_match("/(src=)('|\")(.+?)('|\")/",$val,$matches) == 1)
- echo $matches[3] . "<br />";
- }
Advertisement
Add Comment
Please, Sign In to add comment