Jump to content

Archived

This topic is now archived and is closed to further replies.

thyscorpion

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

Recommended Posts

???
I wish to capture the text  in the tag title of a [b]HTML[/b] 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:[code] <meta http-equiv="keywords" content="aircraft charter">[/code]
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.