Killersites.com Homepage Welcome Guest   |   Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help



Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 5
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 882 times and has 4 replies Next Thread
Female MissJudy
Newbie




Joined: Oct 3, 2005
Post Count: 27
Status: Offline
Reply to this Post  Reply with Quote 
How to Make a Global Change Across a Website

A website I maintain is for a company that is changing their name. The company name is used numerous (hundreds) times throughout the site.

Is there a search & replace utility that can be used to update the site? The coding is strictly HTML with no background database attached.

[Feb 12, 2007 2:34:45 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male LSW
Advanced Member
Member's Avatar

USA
Joined: Nov 27, 2003
Post Count: 6287
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to Make a Global Change Across a Website

Any good editor has a search and replace, most allow you to choose to search an entire folder or site.

This is an example where PHP, Perl, Python or even SSI is nice. You create includes that are added to the page by an include command. The inlude can be code snipplets or just a name like the company name. All pages draw from that one source like with external style sheets, so one chanmge to that page is reflected across all pages.

This can also be done with a Global variable.

Such things can be used to switch out logos, specified routs to images or pages by defining the URL root in one place... then including it follwed by specific paths. This way you specify the path to the folder, but the root include adds the URL. This way the root url is always used, if the pages are accessible through another URL, you make that URL the root and you make but one change...

Course who could guess that a compoany would change a name...

But keep this in mind and when you have a chance, make the site a PHP based site and use includes for all standard elements that are the same for every page so you need to change it but once next time.

(Sorry if this is not clear... busy at work and have a terrible headache so am not thinking real straight and my English is failing me... I learned programming in Germany. Maybe someone else can clarify...)
----------------------------------------
Gu.aal kwsh� yak'�i it�akw ijeet wugood�k

LSW-WebDesign.com
[Feb 12, 2007 2:52:25 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Female MissJudy
Newbie




Joined: Oct 3, 2005
Post Count: 27
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to Make a Global Change Across a Website

Thanks for your response. It is helpful info. I use Dreamweaver as my editor; so I'll look into its S&R feature.

The site actually sits on a Cold Fusion server but has no CF code. It does use some includes. Do includes work for text within the page?

I'd be curious to know what's involved in converting a site to PHP. I suppose I would have to learn PHP.
[Feb 12, 2007 3:30:14 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male cboudy
Advanced Member
Member's Avatar


Joined: May 26, 2006
Post Count: 1757
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to Make a Global Change Across a Website

Ms. J,

It is helpful info. I use Dreamweaver as my editor; so I'll look into its S&R feature.


If your using DW, just press Ctrl + F and it will pop up the Find and Replace box. You can use Replace all and select "Only the current page, All Documents, Only Open Pages, etc


The site actually sits on a Cold Fusion server but has no CF code. It does use some includes. Do includes work for text within the page?


If your talking about php includes then yes. The theory is that you can place something such as your header in 1 php file and use that same file throughout your entire website. That way, when it's time to make changes, you'll just have to update one file and you'll be on your way. Comes in handy when you are working with big sites.


I'd be curious to know what's involved in converting a site to PHP. I suppose I would have to learn PHP.


Well, if you want to convert your site to PHP, you'll have to make sure your server has PHP installed. Most have some PHP 4.something version, but PHP 5 is being installed on alot of them. The only thing you would have to do is save the file type as a php file. (i.e. index.html to index.php). When you do this you can start using php includes.

Now if you don't want to go through the process of converting all your .html page to .php pages, there is a way to change your. htacess file on your server, but that's another story.
[Feb 12, 2007 3:41:15 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Female MissJudy
Newbie




Joined: Oct 3, 2005
Post Count: 27
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to Make a Global Change Across a Website

One step at a time.
I believe our server has PHP installed and if not I'm sure we can get it.
Since I don't manage the web server I'd have to contact the Administrator.
Converting these pages to PHP would solve another issue I have as well.
I appreciate the info!
[Feb 12, 2007 8:03:50 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread