Re: Variables in a Prefernce File

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62147
interpreted = N
texte = I agree with the others responding to this. Take plenty of time to make very clean code - the extra time is worth it when you replicate the code out among other sites. In Vote.Wa.Gov we used the preferences technique for the last 4 years. In VoteWashington.org we did the same thing in many areas, including the SQL preferences, global preferences and county-level preferences. We send a single variable from page to page to indicate which county we are in; then access the preferences files, and then access a great deal of information accordingly. We have always had good luck with this technique. Creating a new state election system is basically a matter of changing the preferences values, and we are off and runnung. Larry On Jun 8, 2005, at 7:06 AM, Lester wrote: > I'm copying a completed website with its admin area > etc to be used in 3-4 other "similar sites". > > There's 120+ total pages give or take per site. > > It's a chore to hard code all the database calls and > other little things to make it all behave on these > other new sites. > > My question... > If I set up a preference file for each site, and place > the unique db names and whatever else is needed for > each sites individuality, am I asking for trouble > doing this on 4-5 sites on one server??? > > The initial site design being copied yesterday got > 1788 unique visitors with 108,000+ total pages views. > > I'm on windows 2003 server using webcat 4.51, 1 gig of > ram, my databases aren't that large and won't get that > large. > > I guess I'm wondering if these soon to be hundreds and > hundreds of pages across 3-4 domains with preference > files snatching and inserting variables in all those > pages is a good way to go versus me hardcodong the > info individually into pages. Can I assume webcat can > handle this well? > > Opinions appreciated. > > I'm away until late afternoon when I need to decide > which direction to continue this in... > > Thanks > > > > lester > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------------------ ------ "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." --Benjamin Franklin Larry Hewitt 360.807.1100 OFFICE HCO, LLC 360.807.1103 FAX 109 No. Tower 360.880.4855 CELL P.O. Box 1017 larryh@hewittco.com Centralia, WA 98531 www.votewashington.org www.hewittco.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Variables in a Prefernce File ( Stuart Tremain 2005)
  2. Re: Variables in a Prefernce File ( Gary Krockover 2005)
  3. Re: Variables in a Prefernce File ( Clint Davis 2005)
  4. Re: Variables in a Prefernce File ( Larry Hewitt 2005)
  5. Re: Variables in a Prefernce File ( John Peacock 2005)
  6. Re: Variables in a Prefernce File ( Donovan Brooke 2005)
  7. Variables in a Prefernce File ( Lester 2005)
I agree with the others responding to this. Take plenty of time to make very clean code - the extra time is worth it when you replicate the code out among other sites. In Vote.Wa.Gov we used the preferences technique for the last 4 years. In VoteWashington.org we did the same thing in many areas, including the SQL preferences, global preferences and county-level preferences. We send a single variable from page to page to indicate which county we are in; then access the preferences files, and then access a great deal of information accordingly. We have always had good luck with this technique. Creating a new state election system is basically a matter of changing the preferences values, and we are off and runnung. Larry On Jun 8, 2005, at 7:06 AM, Lester wrote: > I'm copying a completed website with its admin area > etc to be used in 3-4 other "similar sites". > > There's 120+ total pages give or take per site. > > It's a chore to hard code all the database calls and > other little things to make it all behave on these > other new sites. > > My question... > If I set up a preference file for each site, and place > the unique db names and whatever else is needed for > each sites individuality, am I asking for trouble > doing this on 4-5 sites on one server??? > > The initial site design being copied yesterday got > 1788 unique visitors with 108,000+ total pages views. > > I'm on windows 2003 server using webcat 4.51, 1 gig of > ram, my databases aren't that large and won't get that > large. > > I guess I'm wondering if these soon to be hundreds and > hundreds of pages across 3-4 domains with preference > files snatching and inserting variables in all those > pages is a good way to go versus me hardcodong the > info individually into pages. Can I assume webcat can > handle this well? > > Opinions appreciated. > > I'm away until late afternoon when I need to decide > which direction to continue this in... > > Thanks > > > > lester > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------------------ ------ "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." --Benjamin Franklin Larry Hewitt 360.807.1100 OFFICE HCO, LLC 360.807.1103 FAX 109 No. Tower 360.880.4855 CELL P.O. Box 1017 larryh@hewittco.com Centralia, WA 98531 www.votewashington.org www.hewittco.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Larry Hewitt

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Applescript, WebDNA, and PDF (1997) Getting URL's entered manually (1997) url value (2002) Authenticate (1997) File Upload (1997) Encrypting the URL Query String (2003) WebDNA 4.5 not starting on boot? (2002) Multi Actions (1999) MATH PROBLEM (1997) Up-date for Webcatalog 2.0 (1998) [REFERRER] bug? (1998) Image Library (2003) WCS Newbie question (1997) [format xs] freeze (1997) Rumpus/Typhoon modules included in Typhoon ... (1997) Blowback and budgets. - OT (2000) Problems with [Applescript] (1997) Cyberstudio and WebDNA (1997) WebCat for mass emailings (1997) [format 40s]text[/format] doesn't work (1997)