/    Sign up×
Community /Pin to ProfileBookmark

obtaining title of a webpage w/o parsing the file

Is there a function to get the title of a webpage so that you don’t have to open the page and parse it for the title? Like “get_title(url)” or something? It would really help. If there isn’t an official function, has anyone made one that I could use to save myself the trouble? ?

Thanks,
Steve

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@GenixdeaeApr 28.2005 — you mean like the xxxx.php? or title as in WebDeveloper Forums - obtaining title of webpage w/o parsing the file -Mozilla Firefox
Copy linkTweet thisAlerts:
@balloonbuffoonauthorApr 28.2005 — The title as in: WebDeveloper Forums - obtaining title of webpage w/o parsing the file -Mozilla Firefox[/QUOTE]

-Steve
Copy linkTweet thisAlerts:
@GenixdeaeApr 28.2005 — in that case, to my knowledge not that i know of. if you have control over the page then you can as you can just set it to a variable(see [URL=http://www.webdeveloper.com/forum/showthread.php?t=64120]my post here[/URL])
Copy linkTweet thisAlerts:
@balloonbuffoonauthorApr 28.2005 — Thanks, but I don't have control over the page. I'll just write up a function to to obtain the title by parsing the file and locating it in between the <title></title> tags.

-Steve
×

Success!

Help @balloonbuffoon spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...