IntensE
Power Member
- Aug 19, 2008
- 771
- 661
Hey guys I need a php thing to be done for me, or if you have other suggestions I would highly appreciate.
Basically I have a txt file with a lot of rows (100) like this:
this is a random text on line 1 with a $keyword thats awesome.
this is another random text on line 2 with $keyword2 thats super cool.
this is a boring text on line 3 with $keyword3 thats boring.
.....
bla bla bla $keyword100 blabla.
Now I need to change everytime the keywords, to other ones. And you can imagine by going find-replace one by one it's taking A LOT of time.
I would love if someone would help me to make a small php script that will have a text form where I enter all the 100 keywords (1 per line) and it will change them in the whole text file.
So, if I enter:
apple
mouse
...
the output would be:
this is a random text on line 1 with a APPLE thats awesome.
this is another random text on line 2 with MOUSE thats super cool.
Hope I explained well.
If there is another way to do this, please tell me !
Basically I have a txt file with a lot of rows (100) like this:
this is a random text on line 1 with a $keyword thats awesome.
this is another random text on line 2 with $keyword2 thats super cool.
this is a boring text on line 3 with $keyword3 thats boring.
.....
bla bla bla $keyword100 blabla.
Now I need to change everytime the keywords, to other ones. And you can imagine by going find-replace one by one it's taking A LOT of time.
I would love if someone would help me to make a small php script that will have a text form where I enter all the 100 keywords (1 per line) and it will change them in the whole text file.
So, if I enter:
apple
mouse
...
the output would be:
this is a random text on line 1 with a APPLE thats awesome.
this is another random text on line 2 with MOUSE thats super cool.
Hope I explained well.
If there is another way to do this, please tell me !