IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   PHP (https://www.ircforumlari.net/php/)
-   -   Get all images from a HTML document (https://www.ircforumlari.net/php/640982-get-all-images-html-document.html)

hAte 07 Kasım 2014 06:25

Get all images from a HTML document
 
PHP- Kodu:

$images = array();
preg_match_all('/(img|src)=("|')[^"'>]+/i', $data$media);
unset(
$data);
$data=preg_replace('/(img|src)("|'|="|=')(.*)/i',"$3",$media[0]);
foreach($data as $url)
{
$info = pathinfo($url);
if (isset($info['
extension']))
{
if (($info['
extension'] == 'jpg') ||
($info['
extension'] == 'jpeg') ||
($info['
extension'] == 'gif') ||
($info['
extension'] == 'png'))
array_push($images, $url);
}




Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 05:11.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk