PHP Classes
elePHPant
Icontem

SEO Title: Analyze and report problems in page titles

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2009-08-04 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,570 All time: 2,420 This week: 942Up
Version License PHP version Categories
seotitle 1.0.0GNU Free Document...3.0HTML, Text processing, SEO
Description Author

This class can be used to analyze and report problems in page titles.

It can retrieve a page with a given URL and extract its title.

Currently the class can analyze the title text and report problems based on the title length and the characters used in the title as separators.

Innovation Award
PHP Programming Innovation award nominee
August 2009
Number 7


Prize: One downloadable copy of PhpED Professional
Page titles are one of the most important factors that may influence the number of visitors that are sent by search engines to a site.

This class can extract and analyze titles of Web pages and report several types of problems related with the title lengths and characters used as word separators.

Manuel Lemos
Picture of Sandeep Kumar
Name: Sandeep Kumar <contact>
Classes: 7 packages by
Country: India India
Age: 32
All time rank: 1637 in India India
Week rank: 162 Up20 in India India Down
Innovation award
Innovation award
Nominee: 2x

Details
/**********************************************************************
SeoTitle -- Check Title of a specified URL
Authors : Sandeep Kumar (san4u49 [at] gmail [dot] com)
Version : 1.0
/**********************************************************************

What is Title?
******************************
<title>: the most important element of a quality Web page

The <title> element in HTML is designed to provide a short piece of text that should stand for the document in cases such as:

    * window title bars
    * bookmark lists
    * result lists from search services

A good title

So take care to give your page a good title:

not too short
    "Section One" won't help much when it shows up in a search results list. Section one of what?. Better: <title>Section One of the Modern Music Guide</title> or even better <title>Time Frame (the Modern Music Guide, Section 1)</title>
not too long
    Because only 60 to 80 characters are displayed in many window titles, menus, etc.; you can give a more detailed/pleasant title in the top level heading of your document, e.g. <h1>Section One: When has the Modern Time Commenced, Musicwise?</h1> (with a link to the whole Modern Music Guide for context). 

/*****************************************
About this Class
/*****************************************

This class will check title of specified url.

*********************************************

Ex:
********************************************
$meta=New Seo_Title;
$url=$_REQUEST['url'];
if($url)
{
// show result
$result=$meta->seoTitle($url);
echo "<label>".$result['titleText']."</label>";
echo "<br>";
echo "<label style='color:red'> Result :".$result['title']."</label>";

**********************************************************************/
  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example example file
Accessible without login Plain text file readme.txt Doc. Documentation
Plain text file seoTitle.php Class Seo Title Class File

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,570
This week:0
All time:2,420
This week:942Up
User Comments (1)
It's a great concept and has taught me something.
6 years ago (F Philip DeGeorge)
70%StarStarStarStar