Skip to content
KB Web Thoughts

KB Web Thoughts

  • About
  • KB Web Circles
  • Portfolio
  • Timeline

Get Title of a Webpage using PHP – 2

July 10, 2010 by admin

<?php
$url=”http://example.com”;
echo getTitle($url);

function get_page_title($url)

{

if( !($data = file_get_contents($url)) ) return false;

if( preg_match(“#<title>(.+)</title>#iU”, $data, $t))  {
return trim($t[1]);
}

else

{
return false;
}
}

?>

Categories General Tags PHP
Get Title of a Webpage using PHP – 1
Get Title of a Webpage using PHP – 3

Recent Posts

  • Казино Официальный сайт Pin Up Casino играть онлайн – Вход Зеркало.15612
  • себя новые казино онлайн 2025 с лучшими игровыми автоматами.5868 (2)
  • Mostbet Trkiyede Online Casino.3725 (2)
  • Pin Up Казино – Официальный сайт Пин Ап вход на зеркало 2025.5299 (2)
  • Boostwin казино отзывы и опыт реальных игроков.673

Recent Comments

  1. rahul on List of sites to create Profile Links quickly
  2. Himanshu Negi on Website similar and alternative to Alexa.com
  3. mycarzs on List of top Classifieds sites for website submission and promotion
  4. dineshsjce on List of sites to create Profile Links quickly
  5. pramod kumar on About
  • Link
  • Facebook
  • Twitter
  • YouTube
© 2026 KB Web Thoughts • Built with GeneratePress