Re: To Err or Not Custom Error

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22823
interpreted = N
texte = >I ran into that as well and did this in my errormessages.db > >BadPassword [text show=f]rsite=[ListMimeHeaders >name=HTTP_HOST][value][/ListMimeHeaders][/text]bgcolor=white>[include -[rsite]]

Authorized Access >Only.

> >Where [rsite] is a file with particular site specific data. > >Trouble is I need to have the file -www.xxx.com in every folder. How would I >word the include to look in the root of the domain first.Try this:[include /-[rsite]]Or better:[include file=^errorhandling.txt&site=[rsite]]for looking after a file called errorhandling.txt in your globals folder. Then make a search in that file, based on the value of [rsite], and you can store all your site specific data for all your sites in a db instead of spreading files all over your server.Or best:Just put [include file=^errorhandling.txt&error=badpassword] in the errormessages.db and do all your fancy stuff in your new errorhandling.txt file in your globals folder. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Ideer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se Associated Messages, from the most recent to the oldest:

    
  1. Re: To Err or Not Custom Error (John Winningham 1999)
  2. Re: To Err or Not Custom Error (Kenneth Grome 1999)
  3. Re: To Err or Not Custom Error (Christer Olsson 1999)
  4. Re: To Err or Not Custom Error (Christer Olsson 1999)
  5. Re: To Err or Not Custom Error (Bob Minor 1999)
  6. Re: To Err or Not Custom Error (Bob Minor 1999)
  7. Re: To Err or Not Custom Error (Bob Minor 1999)
  8. Re: To Err or Not Custom Error (The Mooseman 1999)
  9. Re: To Err or Not Custom Error (Grant Hulbert 1999)
  10. Re: To Err or Not Custom Error (Kenneth Grome 1999)
  11. Re: To Err or Not Custom Error (Kenneth Grome 1999)
  12. To Err or Not Custom Error (The Mooseman 1999)
>I ran into that as well and did this in my errormessages.db > >BadPassword [text show=f]rsite=[ListMimeHeaders >name=HTTP_HOST][value][/ListMimeHeaders][/text]bgcolor=white>[include -[rsite]]

Authorized Access >Only.

> >Where [rsite] is a file with particular site specific data. > >Trouble is I need to have the file -www.xxx.com in every folder. How would I >word the include to look in the root of the domain first.Try this:[include /-[rsite]]Or better:[include file=^errorhandling.txt&site=[rsite]]for looking after a file called errorhandling.txt in your globals folder. Then make a search in that file, based on the value of [rsite], and you can store all your site specific data for all your sites in a db instead of spreading files all over your server.Or best:Just put [include file=^errorhandling.txt&error=badpassword] in the errormessages.db and do all your fancy stuff in your new errorhandling.txt file in your globals folder. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Ideer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se Christer Olsson

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:

Searching multiple fields (1997) [BoldWords] WebCat.acgib15Mac (1997) Separate SSL Server (1997) Oops, my mistake - (was Bad suffix error) (1997) show all problem (1997) Limit on nested [ShowIf]'s? (1997) Re:WebCatalog f2 Installation (1997) [WriteFile] problems (1997) DB Emergency (2002) Keep away (1997) Signal Raised error (1997) Merging databases (1997) WebCat2 several catalogs? (1997) Crashes and prior posting (2006) [WebDNA] configuring 5.1 with apache 2? (2008) Bad URL reference? (1997) notification solutions (1997) using listfiles to build a database? (2000) Enhancement Request for WebCatalog-NT (1996) Problems searching from a FORM (1997)