Search found 2 matches
- Wed Oct 22, 2008 9:53 am
- Forum: PHP - Code
- Topic: Is there a way to get the Title Tag through PHP?
- Replies: 13
- Views: 1249
Re: Is there a way to get the Title Tag through PHP?
in researching I have found that preg_match("#<title>(.*?)</title>#i", $html, $matches); echo htmlentities($matches[1]); Will only work with preg_match if the title is hard coded. We are dynamically creating titles and my other programing friend said this will now work. I asked if I can us...
- Tue Oct 21, 2008 3:45 pm
- Forum: PHP - Code
- Topic: Is there a way to get the Title Tag through PHP?
- Replies: 13
- Views: 1249
Is there a way to get the Title Tag through PHP?
What im trying to do is have a page that has a link Basically the link would have the URL and the Page Title (almost like a send to a friend) I just need to access the Title Tag of that specific page. I know $URL = "http://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI&qu...