|
02-13-2008, 03: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? |
Thread Tools | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Duplications of Title and Meta Tag Info | mokele | Troubleshooting | 1 | 03-24-2006 12:15 PM |
Description meta tag field in results | flyingtwig | How-to Forum | 3 | 08-09-2004 08:58 AM |
altering meta tag content | wessam | How-to Forum | 1 | 08-04-2004 02:34 PM |
Can phpDig use only the Meta Description Tag | JuarezTourGuide | How-to Forum | 2 | 05-10-2004 04:54 PM |
Problems with the Redirection Meta Tag | francov | Troubleshooting | 2 | 03-17-2004 07:25 PM |