1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Whole site find and replace edit.

Discussion in 'Content Management' started by dougadam, Jan 31, 2007.

  1. #1
    dougadam, Jan 31, 2007 IP
  2. honey

    honey Prominent Member

    Messages:
    15,555
    Likes Received:
    712
    Best Answers:
    0
    Trophy Points:
    325
    #2
    Is there something like this that can work on a web server ?
     
    honey, Feb 3, 2007 IP
  3. hape

    hape Peon

    Messages:
    108
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If it is a LINUX server use via shell access
    **********
    for fl in *.php; do
    mv $fl $fl.old
    sed 's/Searchterm/New term/g' $fl.old > $fl
    rm -f $fl.old
    done
    **************
    **************
    for fl in *.php; do
    ^^^^
    This would change term in all files in the folder ending in .php
    Change to suit
     
    hape, Feb 8, 2007 IP
  4. donkevlar

    donkevlar Peon

    Messages:
    136
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    donkevlar, Feb 8, 2007 IP