Re: Using Apache::Sandwich on php files

2001-03-07 Thread Clint Gilders

Vivek Khera wrote:
> I find it risky to run sandwich on *.htm* files... your header file
> itself is a .html file; do you want that sandwiched as well?  I guess
> the module protects itself from that, but still, it is unclean.

Actually, I changed the extensions of my header and footer files to
.php3 so they wouldn't get sandwiched.  So my perl.conf actually
contains:


 SetHandler perl-script
 PerlHandler Apache::Sandwich
 PerlSetVar HEADER "/includes/head.php3"
 PerlSetVar FOOTER "/includes/foot.php3"
 PerlSetVar SandwichHandler server_parsed


> Tell SandwichHandler to run the php handler instead of the
> server_parsed handler.  I have never tried it, but theoretically, it
> should work, assuming I implemented it correctly ;-)

What would be the sytax of the command to us the php handler (on .php
files) instead of the server-parsed handler?

Thanks
Clint

-- 
Clint Gilders
Servermaster Onlinehobbyist Inc.
[EMAIL PROTECTED]



Using Apache::Sandwich on php files

2001-03-01 Thread Clint Gilders

Hi
I'm trying to figure out how to "Sandwich" php files.  Is this
possible? For my .htm* files I have:


SetHandler perl-script
PerlHandler Apache::Sandwich
PerlSetVar HEADER "/includes/head.html"
PerlSetVar SandwichHandler server_parsed


What would I need to change to have this work for php?

Thanks
-- 
Clint Gilders
Servermaster Onlinehobbyist Inc.
[EMAIL PROTECTED]



Re: HTTP_REFERRER and Mod_perl

2001-01-15 Thread Clint Gilders

Stef Telford wrote:
 
> The problems arise when i try to use HTTP_REFERRER from
> the $ENV enviroment. All the other variables are set jst fine
> (HTTP_HOST,
> HTTP_ACCEPT, HTTPS) but no HTTP_REFERRER. What am I doing
> wrong to not 'obtain' this variable. it never shows up in the $ENV list.
> Is this an oversight of mod_perl (v1.24).
> 

Your reference the variable as HTTP_REFERRER when it is actually
HTTP_REFERER (mispelled in the header specs).  When I call
$ENV{'HTTP_REFERER'} from a script in my perl-bin it works fine. 

-- 
Clint Gilders
Servermaster Onlinehobbyist Inc.
[EMAIL PROTECTED]



Apache::Sandwich and DirectoryIndex

2001-01-10 Thread Clint Gilders

Hi
I have installed Apache::Sandwich on FreeBSD 3.4/Apache 1.3.12/mod_perl
1.24 and have noticed in working with it that if I call a URL like:
http://www.domain.com/test/index.html , it works fine and puts the
header and footer on the file. But, if I call:
http://www.domain.com/test/ , I get:
--
Not Found

The requested URL /test/ was not found on this server.
--
My perl.conf file contains:


SetHandler perl-script
PerlHandler Apache::Sandwich
PerlSetVar HEADER "/body.html"
PerlSetVar FOOTER "/bottom.html"


Another curious thing is that the 404 error is not being logged in my
error log.

Is there a way to allow directory indexes with Apache::Sandwich?

Thanks
-- 
Clint Gilders
Servermaster Onlinehobbyist Inc.
[EMAIL PROTECTED]