Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Best method to retrieve site settings
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Best method to retrieve site settings

 Post Reply Post Reply Page  <12
Author
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 31 August 2005 at 11:32am
I think the config file idea is best.  Store values in constant variables, and use FSO with your admin backend script to parse this data and manipulate it.
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post Posted: 31 August 2005 at 11:56am
I uderstand what you are saying, getting a nice little asp file, include that on every page or on the header which itself will be included on every page, now that is fine, but this file will have to be read and processed everytime, as a user goes to the about page it reads and applies the config, then he goes to visit the contact page, the same happens, the user could be visiting hundreds of pages, and hunders of times this file has to be read and processed, not to mention the visited page itself, don't you think there's too much overhead there?

My server is set to use user HTTP compression that forces every dynamic page to be read and processed before it is sent out, due to the dynamic nature of the file, the same happens to all asp, shtml, ... by default, even with no HTTP compression, so the server will not be serving this config file from cache, and that's where the overhead will be coming from.

Say you have 100 asp pages, a user goes through all of them, the server will have to process 100 pages and generate HTML for all of them to send out, but hold on a second, you also have a config file included on all of them, so the server will have to process twice as much, 200 pages, when the user requested only 100 of them, that seams a heck of alot of overhead, there's got to be a better way.
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post Posted: 31 August 2005 at 12:29pm
This is just to say I remembered something else, I just remembered that the including is done before any processing on the main file, so in the end only one file is processed.

Yep, I think a full of Consts include file could be the fastest way.

I would still like to hear more alternatives to this.
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.