superunison
11-13-2002, 11:53 AM
hey all,
i'm building an error system for a site i'm working on. i've decided to pass errors numerically between pages / sections of pages when needed (for logging purposes, as well as certain logic reasons). i can think of several ways of translating these errors so that they have meaning to the site's users. i can build them into a global array, i could use a database lookup, i could have a flat text file that's looked through, i could have an array built off a text file, etc.
my question is, does anyone have any experience with which of these is the fastest and most versatile? obviously, the db way to do it would allow me the most freedom, but i figure that connecting to the db for the purposes of spitting out what will probably be, most frequently, one error, is inefficient.
i'm leaning towards a numerically indexed global array, stored in an include. any thoughts?
help is appreciated.
chris
i'm building an error system for a site i'm working on. i've decided to pass errors numerically between pages / sections of pages when needed (for logging purposes, as well as certain logic reasons). i can think of several ways of translating these errors so that they have meaning to the site's users. i can build them into a global array, i could use a database lookup, i could have a flat text file that's looked through, i could have an array built off a text file, etc.
my question is, does anyone have any experience with which of these is the fastest and most versatile? obviously, the db way to do it would allow me the most freedom, but i figure that connecting to the db for the purposes of spitting out what will probably be, most frequently, one error, is inefficient.
i'm leaning towards a numerically indexed global array, stored in an include. any thoughts?
help is appreciated.
chris