PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 02-13-2008, 02:16 AM   #1
parikh13
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?
parikh13 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -8. The time now is 07:38 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.