Greenguy's Board


Go Back   Greenguy's Board > Newbie Questions
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-01-07, 05:43 PM   #1
T Pat
You can now put whatever you want in this space :)
 
T Pat's Avatar
 
Join Date: Aug 2003
Location: Paridise
Posts: 3,244
Send a message via ICQ to T Pat
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
T Pat is offline   Reply With Quote
Old 2005-01-07, 05:49 PM   #2
MadMax
"Without evil there can be no good, so it must be good to be evil sometimes" ~ Satan
 
MadMax's Avatar
 
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.
MadMax is offline   Reply With Quote
Old 2005-01-07, 05:51 PM   #3
DangerDave
Bonged
 
DangerDave's Avatar
 
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
DangerDave is offline   Reply With Quote
Old 2005-01-07, 06:15 PM   #4
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
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.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-01-07, 06:17 PM   #5
Chop Smith
Eighteen 'til I Die
 
Chop Smith's Avatar
 
Join Date: Apr 2003
Location: Mississippi
Posts: 2,168
Send a message via ICQ to Chop Smith
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.
__________________
Chop Smith is offline   Reply With Quote
Old 2005-01-07, 06:39 PM   #6
cd34
a.k.a. Sparky
 
cd34's Avatar
 
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
cd34 is offline   Reply With Quote
Old 2005-01-07, 06:48 PM   #7
T Pat
You can now put whatever you want in this space :)
 
T Pat's Avatar
 
Join Date: Aug 2003
Location: Paridise
Posts: 3,244
Send a message via ICQ to T Pat
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
T Pat is offline   Reply With Quote
Old 2005-01-07, 06:55 PM   #8
T Pat
You can now put whatever you want in this space :)
 
T Pat's Avatar
 
Join Date: Aug 2003
Location: Paridise
Posts: 3,244
Send a message via ICQ to T Pat
Quote:
Originally posted by cd34


its a python script and is pretty easy to use.

Easy for you
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
T Pat is offline   Reply With Quote
Old 2005-01-07, 08:06 PM   #9
Porn Meister
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!)
Porn Meister is offline   Reply With Quote
Old 2005-01-08, 06:40 AM   #10
Dylan
Lord help me, I'm just not that bright
 
Join Date: Feb 2004
Posts: 108
goes to EditPlus 2
__________________
Dildo's Porn Links
Dylan is offline   Reply With Quote
Old 2005-01-08, 12:26 PM   #11
tiny
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:
Originally posted by TijuanaPat
Easy for you
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
thats a setup button on the remote TP hehe.
tiny is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:05 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc