i have a site with 100 pages also, and with the same title, say "good morning", now i have 100 line different phrases, how to use php to replace each page's "good morning" with each different phrase?
You can use PSPAD editor first download all files on local disk in a folder then take a backup of all files (subdirectorywise). Then open any file in pspad and there is an option to search and replace in multiple files Regards Alex
manual mate. unless you want to do bulk changing let say all "good morning" to "good night" you could try actual search and replace. it's a wonderful program.
That's impossible mate. As kendo said: manual. If it was replacing one phrase for a new one then it's not big deal but since you want to change 1 phrase for different phrases... that's just not possible. So your options are: do it yourself manually or hire someone to do it for you... manually. P.S.: if you do find a way to do it automatically it will be a life saver for all of us xD
for example, good moring in a.htm, b.htm, c.htm. now i have 3 phrease: one, two, three. i want to use php to let good morning in a.htm becomes one, and good morning in b.htm becomes two, good morning in c.htm becomes three.
dude, if you want a certain phrase to be change dynamically, make it a variable, for example change the phrase "good morning" to <?php echo $my_phrase; ?>, then on the php code before this line you set $my_phrase to the phrase you want to show, for example, <?php $my_phrase = "good afternoon"; ?>. Makes sense?