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
preg_match ile resimleri kendi sunucumuza cekme
PHP & PHP Framework0 Mesaj
●3 Görüntüleme
- ReadBull.net
- Programlama ve Yazılım
- Server-Side Programlama
- PHP & PHP Framework
- preg_match ile resimleri kendi sunucumuza cekme