Computing.Net > Forums > Web Development > Script that adds page title when link is type

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Script that adds page title when link is type

Reply to Message Icon

Name: ChrisINSC
Date: September 28, 2009 at 16:31:44 Pacific
OS: Windows XP
CPU/Ram: 2.6Ghz/1GB
Subcategory: Javascript/Ajax
Tags: Scripts, code, title, page, Lookup
Comment:

Hi,
I have seen on some forums when you type in a web site address the page automatically looks up and adds the web site / page title. Does anyone know where i can get this script or just pass me the code. Thanks,

Chris
www.inscnet.com



Sponsored Link
Ads by Google

Response Number 1
Name: Radix-64
Date: October 6, 2009 at 08:51:20 Pacific
Reply:

Hi, have you tried using the get_meta_tags function to obtain the site info for the page title? Something perhaps like:

<?php
$tags = get_meta_tags($url);
echo $tags['title'];
?>


0
Reply to Message Icon

Related Posts

See More


Random dir off external w... file url redirect to emai...


Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Script that adds page title when link is type

Frame - Page Title www.computing.net/answers/webdevel/frame-page-title/215.html

Changing Page Title with templates www.computing.net/answers/webdevel/changing-page-title-with-templates/2537.html

How to show GridViewData When Db is empty???? www.computing.net/answers/webdevel/how-to-show-gridviewdata-when-db-is-empty/4124.html