On Feb 10, 2008 12:37 PM, Mag Gam <[EMAIL PROTECTED]> wrote:
> I am trying to change DocumentRoot because, currently I am using open() to
> load templates for my website. I have header, menu, footer in 3 seperate
> files, and I generate content like that. It works fine now, just not too
> dynamic
I do keep my templates in other directories also.
1. If your directories are relative to the document root, and you can
take advantage of this fact by rendering a variable to remember the
template path.
2. If your template directories have nothing in common with the document
root, then you can
Thanks for the quick response Perrin.
I am trying to change DocumentRoot because, currently I am using open() to
load templates for my website. I have header, menu, footer in 3 seperate
files, and I generate content like that. It works fine now, just not too
dynamic when I want to move the stuff
On Feb 10, 2008 12:24 PM, Mag Gam <[EMAIL PROTECTED]> wrote:
> my $docroot = $r->document_root('/var/www/html/perl');
Why are you trying to change the DocumentRoot?
- Perrin
I am taking the Apache2::Request method, and will integrate the DB solution
as Chandra mentioned.
#!/usr/bin/perl -w
use strict;
use CGI;
use Apache2::Request;
use Data::Dumper;
print "Content-type: text/html\n\n";
my Apache2::Request $r = shift;
my $docroot = $r->document_root('/var/www/html/p
Perrin Harkins wrote:
On Feb 6, 2008 10:06 PM, Mag Gam <[EMAIL PROTECTED]> wrote:
Currently, when I open a file I have to use the
absolute path (/var/www/appname/top.inc). Is it possible for me to use just
'top.inc'?
You can either use DocumentRoot
(http://perl.apache.org/docs/2.0/ap
On Feb 6, 2008 10:06 PM, Mag Gam <[EMAIL PROTECTED]> wrote:
> Currently, when I open a file I have to use the
> absolute path (/var/www/appname/top.inc). Is it possible for me to use just
> 'top.inc'?
You can either use DocumentRoot
(http://perl.apache.org/docs/2.0/api/Apache2/RequestUtil.html#C_
Another option:
my $HEADER= "$ENV{DOCUMENT_ROOT}/header.shtml";
- Original Message
From: Roberto C. Sánchez <[EMAIL PROTECTED]>
To: modperl@perl.apache.org
Sent: Wednesday, February 6, 2008 8:10:08 PM
Subject: Re: Question about open()
On
Wed,
Feb
06,
2008
On Wed, Feb 06, 2008 at 10:47:08PM -0500, Mag Gam wrote:
> What is global.asa?
>
> Sorry, I am somewhat new at this...
>
My mistake. I am using Apache::ASP (which is built on mod_perl) for
my pages. Sorry for the confusion.
Regards,
-Roberto
--
Roberto C. Sánchez
http://people.connexer.com/
What is global.asa?
Sorry, I am somewhat new at this...
On Feb 6, 2008 10:10 PM, Roberto C. Sánchez <[EMAIL PROTECTED]> wrote:
> On Wed, Feb 06, 2008 at 10:06:05PM -0500, Mag Gam wrote:
> > Hi All,
> >
> > I have been using mod_perl, and I have several perl-cgi files that use
> the
> > open().
On Wed, Feb 06, 2008 at 10:06:05PM -0500, Mag Gam wrote:
> Hi All,
>
> I have been using mod_perl, and I have several perl-cgi files that use the
> open(). I use this function to open/include my header, footer, basically a
> poor man template system. Currently, when I open a file I have to use the
Hi All,
I have been using mod_perl, and I have several perl-cgi files that use the
open(). I use this function to open/include my header, footer, basically a
poor man template system. Currently, when I open a file I have to use the
absolute path (/var/www/appname/top.inc). Is it possible for me t
12 matches
Mail list logo