|
02-13-2008, 02:16 AM | #1 |
Green Mole
Join Date: Feb 2008
Posts: 1
|
How to edit/change existing & static html meta tag?
Hi!
I've one php file in which due to some reason there are hard coded meta tags are there: for instance the source code of file is <html> <head> <title>My Page Title</title> <meta name="title" content="My Page Title" /> <meta name="description" content="Simple Test can be useful"> </head> </html> Now I want to change the content of existing meta tag (Meta title) on runtime. But not getting solution how to do that Now i want to see the source code after running the file is: <html> <head> <title>NEW PAGE TITLE</title> <meta name="title" content="NEW PAGE TITLE" /> <meta name="description" content="Simple Test can be useful"> </head> </html> N.B. I have tried ereg_replace, strip_tags etc but it simply adds or duplicates to source file kindly help me how can i do that? |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Duplications of Title and Meta Tag Info | mokele | Troubleshooting | 1 | 03-24-2006 11:15 AM |
Description meta tag field in results | flyingtwig | How-to Forum | 3 | 08-09-2004 07:58 AM |
altering meta tag content | wessam | How-to Forum | 1 | 08-04-2004 01:34 PM |
Can phpDig use only the Meta Description Tag | JuarezTourGuide | How-to Forum | 2 | 05-10-2004 03:54 PM |
Problems with the Redirection Meta Tag | francov | Troubleshooting | 2 | 03-17-2004 06:25 PM |