Re: Apache::ASP #include virtual loses variables

2000-05-21 Thread Joshua Chamas
Philip Mak wrote: > > So, there's no way in Apache::ASP to include a file by specifying a path > relative to DOCUMENT_ROOT, or relative to the directory of the current > file (which is not necessarily equivalent to the request URI, if the > current file is included)? > > I managed to get my site

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Philip Mak
So, there's no way in Apache::ASP to include a file by specifying a path relative to DOCUMENT_ROOT, or relative to the directory of the current file (which is not necessarily equivalent to the request URI, if the current file is included)? I managed to get my site to work using and specifying fu

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Joshua Chamas
Ime Smits wrote: > > | Well, I would like to suggest that you consider including in the Apache::ASP distribution, so that included files use the > | same namespace. It doesn't make sense logically that include virtual > | behaves differently from include file (other than the way the > | filename

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Ime Smits
| Well, I would like to suggest that you consider including in the Apache::ASP distribution, so that included files use the | same namespace. It doesn't make sense logically that include virtual | behaves differently from include file (other than the way the | filename/pathname is interpreted, of

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Ime Smits
| > I would not do it this way, in fact the way I would do this | > would not be with your methods at all, unless you want | > to have each section to be arbitrarily different and | > maintained by separate graphics designers. The way I would | > do this thing is to lose the directory structure c

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Philip Mak
On Sat, 20 May 2000, Joshua Chamas wrote: > > > > > > For #1, know includes will be picked up from your Global directory, > so you can use that repository to share includes, instead of some > DOCUMENT_ROOT location. You can also use IncludesDir for this if > it is set. Thanks! That pretty mu

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Joshua Chamas
Philip Mak wrote: > > I see. There are two problems that I have with file includes though: > > (1) I cannot specify a file's location relative to $ENV{'DOCUMENT_ROOT'}. > > (2) I cannot specify a file's location relative to the directory the > current file is in. > > For #1, I want to do somet

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Philip Mak
On Sat, 20 May 2000, Joshua Chamas wrote: > Use file includes. virtual includes are meant to execute > anything and include its output, and is handles by Apache::SSI > outside of Apache::ASP. File includes will be executed as perl > asp subroutines in the same perl namespace as the > including

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Joshua Chamas
Use file includes. virtual includes are meant to execute anything and include its output, and is handles by Apache::SSI outside of Apache::ASP. File includes will be executed as perl asp subroutines in the same perl namespace as the including script. -- Joshua _

Apache::ASP #include virtual loses variables

2000-05-20 Thread Philip Mak
Hello, I have stumbled upon an issue with Apache::ASP directive. Included files do not seem to be able to access the same scope of variables. I am using the following test program: File 1.inc: <% $test .= '1'; %> $test = <%=$test%> File 2.inc: <% $test = '2'; %> One would expect the output