Is there a PHP variable that holds the page title?
I would like to get a hold of the title of the page that I at,(The text at the top of the browser) for later storage.
Thanks!
rouse
0
Junior Poster
Recommended Answers
Jump to PostI don't if there is one but you can use this technique :-
<html> <head> <?php include("somefile.php"); ?> <title><?php echo $page_title; ?></title> </head> </html>
The $page_title variable gets it's value from the included files.
Jump to PostWhat do you mean 'for later storage'?
All 6 Replies
dhruv_arora
5
Junior Poster
karthik_ppts
commented:
useful
+5
diafol
dhruv_arora
5
Junior Poster
diafol
Stefano Mtangoo
455
Senior Poster
rouse
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.