|
|
![]() |
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
![]() |
#1 |
You can now put whatever you want in this space :)
|
How do you search and replace a whole website?
I finale have phpadsnew setup in a way that is easy to maintain and works for me (It just took two attempts on different sites, several temper tantrums, reading the manual once a month for a year and everything Cleo has ever written about phpaddsnew three times)
what program can I use to do asearch and replace on alll of my files at once
__________________
How To Keep An Asshole In Suspense
I'll Tell You Later |
![]() |
![]() |
![]() |
#2 |
"Without evil there can be no good, so it must be good to be evil sometimes" ~ Satan
Join Date: Aug 2004
Location: Motor City, baby, where carjacking was invented! Now GIMME THOSE SHOES!
Posts: 2,385
|
If you use Dreamweaver 4.0 or newer....
you can do it from the "site" window. Edit>Find & Replace. The find/replace window is pretty friendly so you should be able to figure it out...any problems just post again and I'll give you a hand. |
![]() |
![]() |
![]() |
#3 |
Bonged
Join Date: Mar 2003
Location: BrisVegas, AUSTRALIA
Posts: 4,882
|
Pat,
Cleo is probably your answer again... ![]() I am pretty sure she has a decent "on server" search and replace script. DD
__________________
Old Dollars >>>> Now with over 90 Hosted Free Sites <<<< DangerDave.com.au - Adult Links to Free Porn |
![]() |
![]() |
![]() |
#4 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
This is what I use.
Veinotte's Web File Editor http://www.cgi.veinotte.com/scripts.htm The site seems to be down. ![]() |
![]() |
![]() |
![]() |
#5 |
Eighteen 'til I Die
|
Pat,
Be careful doing this server side and make sure you have a good backup. If I understand you correctly, I would mirror the site to my harddrive, make the changes locally (while maintaining a copy of the original files) and then ftp the changed files back to your server. You can use a text editor like EditPro , open all the documents, and do a replace all. As DD says, Cleo probably has a better solution, but from experience server side editing, as in all editing, is not very forgiving. |
![]() |
![]() |
![]() |
#6 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
if you have ssh, you can use rpl
I would suggest that you do something like cp -Rp currentdir backupdir then rpl -R -x .html -x .php 'texttoreplace' 'replacewith' * that will look at only .html and .php files an d replace the text. Of course, if it is multiline, you need to use -e and map the \n for newlines. rpl is on most distributions. In debian, apt-get install rpl its a python script and is pretty easy to use. you can also add -s, which will run a dry run and tell you the number of occurrences and number of files that will be changed.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#7 |
You can now put whatever you want in this space :)
|
Thanx everyone
![]() MadMax Dreamweaver is over my head Chop Smith glade you posted I was just trying to decide if I had balls big enough to do this on the server. If your worried about me fucking my whole site up odds are I would have I'll do it your way|rasta| Got that link book marked Cleo, btw the last post you wrote about how you have phpadds setup cut through the fog for me thanx ![]()
__________________
How To Keep An Asshole In Suspense
I'll Tell You Later |
![]() |
![]() |
![]() |
#8 | |
You can now put whatever you want in this space :)
|
Quote:
Your talking to a man that has been watching movies with subtitles for months becouse I can't find the button to turn them off on my remote ![]()
__________________
How To Keep An Asshole In Suspense
I'll Tell You Later |
|
![]() |
![]() |
![]() |
#9 |
Asleep at the switch? I wasn't asleep, I was drunk
Join Date: Dec 2004
Posts: 214
|
dare has a couple of notes and links on his marks-links submit page that could be helpful (after you've backed up of course!)
|
![]() |
![]() |
![]() |
#10 |
Lord help me, I'm just not that bright
Join Date: Feb 2004
Posts: 108
|
![]()
__________________
Dildo's Porn Links |
![]() |
![]() |
![]() |
#11 | |
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
Join Date: Aug 2003
Location: maine
Posts: 447
|
Quote:
|
|
![]() |
![]() |
![]() |
|
|