Jump to content


Photo

how to capture the title tag text as variable for php???


  • Please log in to reply
2 replies to this topic

#1 thyscorpion

thyscorpion
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 25 July 2006 - 08:56 AM

???
I wish to capture the text  in the tag title of a HTML page to use are a variable for my php scrip.

when i say Tag text  the page's title and meta keyword(s) are the same.

Eg:
<meta http-equiv="keywords" content="aircraft charter">
i need the content text: "aircraft charter". as a php variable to manipulate it.
how can i go about doing this. i realize it might just be very easy and making a fool of myself asking about it  :P
please do reply soon.



#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 25 July 2006 - 11:48 AM

You could do this with eregi() and some regex wizardry. Check out regular-expressions.info, and if you get stuck, post your progress and problem in our Regex forum.

#3 thyscorpion

thyscorpion
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 26 July 2006 - 08:57 AM

thanks will look into it and keep u posted. :-)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users