$content  = @file_get_contents($resimi); 
if($content) 
{ 
    $filename = seflink($baslik); 
    $handle   = fopen('../wp-content/uploads/resimler/'.$filename.'.jpg', 'w+'); 
    fwrite($handle, $content); 
    $resimadresi = "resimler/".$filename.".jpg"; 
    watermark($resimadresi, 'WATERMARK ADRESİ', $resimadresi);
}