Sardunya | PHP, MySQL, Ajax, Html, Css, Seo

Sitenin title’ını çekip link veren fonksiyon

by Ozcan on Tem.31, 2009, under PHP

PHP:
  1. <?php
  2. function link($site)
  3. {
  4. $section = file_get_contents($site);
  5. $icerik='##si';
  6. preg_match($icerik,$section,$d_icerik);
  7. echo "<a title="$d_icerik[1]" href="$site">$d_icerik[1]</a>";
  8. }
  9. link('http://www.csstema.com');
  10. ?>

:, , , , , ,

Yorumlar

Arama

Bir anahtar kelime girerek aramaya baslayabilirsiniz :

 

Tavsiye Linkler

Sardunya.org'un destekledigi ve begendikleri