how to use php to modify a word in many .html page?

Discussion in 'PHP' started by digitalspace, Mar 30, 2008.

  1. #1
    i want to exchange certain words in many htm pages, how to do?
     
    digitalspace, Mar 30, 2008 IP
  2. GazPoint

    GazPoint Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do they have to be htm files? If you are able to make them php files then include a file with a constant representing the text you want to display...

    Otherwise I'd create a php file with an array for each filename you need to edit. Read the file into a string. Replace the string and then save it back.

    Loop through the array and repeat the action for each file
     
    GazPoint, Mar 30, 2008 IP
  3. digitalspace

    digitalspace Banned

    Messages:
    347
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    for example, i want to let all money in the pages become, quick money, what to do?
     
    digitalspace, Mar 30, 2008 IP