Herhangi bir sunucudaki dosyaları aşağıdaki kodla siteme alabiliyorum;

PHP:
$hedef = "/var/www/vhosts/kendisitem.com/httpdocs/resimler/a-test.jpg"; $kaynakresim = "http://www.deneme.com/resim.jpg"; $image = file_get_contents($kaynakresim) or ('Resim eklenemedi'); $fp = fopen($hedef, 'w+') or die('Could not create the file'); fputs($fp, $image) or die('Could not write to the file'); fclose($fp); unset($image);

benim istediğim file_get_contents ve preg_match veya preg_match_all kullanarak sayfanın kaynağında ne kadar