Find the \"SEO Friendly\" title in a URL.
Finds an "SEO Friendly" title placed in the URL after the domain and returns the value.
Copy this code and paste it in your HTML
<?php
function getTitle(){
$fp = fopen("http://www.example.com","r"); $page .= fgets($fp, 4096); }
$title = eregi("<title>(.*)</title>",$page,$regs); return $regs[1];
}
?>
Report this snippet
Comments
Subscribe to comments