Forum Index Search Forum Register Log in

Current

7.0 Production
build 6 Mar '07


7.1 Beta 5
build 7 Oct '07



A donation makes a contribution towards the time and effort that's going in to running this site.

Steffen

Contact:
My mail address is
at the top of the paypal form :

Your donations will help to keep this site alive and well.

customer error pages

 
Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
View previous topic :: View next topic  
Author Message
jamessampford



Joined: 11 May 2005
Posts: 3

PostPosted: Wed 11 May '05 21:57    Post subject: customer error pages Reply with quote

is it possible to create customised error pages - 401, 403, 404 etc etc?

if so how, and what files to add/edit?


great software @ the moment - working good over my home made intranet Smile
Back to top
View user's profile
xing



Joined: 09 Jun 2004
Posts: 24

PostPosted: Wed 11 May '05 22:02    Post subject: Reply with quote

You can edit the files in sambar/messages/


X
Back to top
View user's profile
jamessampford



Joined: 11 May 2005
Posts: 3

PostPosted: Wed 11 May '05 22:05    Post subject: Reply with quote

thanks xing Smile
Back to top
View user's profile
jamessampford



Joined: 11 May 2005
Posts: 3

PostPosted: Wed 11 May '05 22:09    Post subject: Reply with quote

is it possible to include php files within these files - if so how?

i know ina php script you use

include('file.php');

but i do not know about this system
Back to top
View user's profile
Michael



Joined: 09 Aug 2005
Posts: 4

PostPosted: Tue 09 Aug '05 16:12    Post subject: Reply with quote

Seems like an old topic, but in case anyone else can benefit from this...

I use virtual hosts, and the way I get different custom error messages for each virtual host is by using the Sambar scripting language. Each .stm file in the /messages directory has only one line:

Code:
<RCinclude /errors/404.php>


Then I have a directory /errors/ within my virtual host document directories which houses my custom error messages. This works very nicely since the .stm file understands the relative URI and the PHP file also gets parsed correctly.
Back to top
View user's profile
shaggy



Joined: 06 Jul 2006
Posts: 19

PostPosted: Tue 28 Nov '06 19:07    Post subject: Reply with quote

Question about this should also be something of the like:

Some ppl maynot want this. In apache *sorry* in the footer of the error pages you see stuff DAV/2, mod_perl, ............ Now this Sambar is there a way to stuff of the like that is used in Sambar to show up on the bottom of the error pages? (ie: DAV/2, Perl, PHP, Python, .............)
Back to top
View user's profile

Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
Page 1 of 1