[Xitami] Another Try, (little different approach), -
tom buckley
xitami@lists.xitami.org
Wed, 04 May 2005 17:54:28 -0400
Thanks Ron, "AND Lois"
I have about decided that I am also having problems with the cgi script
itself, for the following reasons, unless someone here might recognize
something else I should do.
I CAN make the opening page "template file" include the index.cgi file
which allows me to set that page up using html etc; HOWEVER, the script
automatically builds additional pages as you go, (it's like a blog or bb
script), as well as it auto-prints page numbers "on the fly" ie: [Page:
1.2.3...] into that page, BUT that first page is the ONLY page that seems to
be using the <include>!! IOWs when you click one of the additional page #s,
you are sent directly to the index.cgi instead of everything remaining
inside of the template page.... hope @ makes sense!! So although I AM
able to link to the template.shtml page where it is working correctly, and
the index.cgi is included into the html design etc; once you click to go to
another page of the script, all of this is gone! Sorry so long and
confusing, but I really do appreciate all of your help and consideration.
Have a good day! harthon
>From: "Ron Ackerman" <ron@miplanet.net>
>Reply-To: xitami@lists.xitami.org
>To: <xitami@lists.xitami.org>
>Subject: RE: [Xitami] Another Try, (little different approach), -
>Date: Wed, 4 May 2005 09:57:04 -0400
>
>~It's been awhile since I've done any SSI, but I remember I had to call my
>pages shtml or shtm.
>
>
>I do know that for includes to work such as: <!--#include
>virtual="sitefoot.txt"--> it is going to
>look for the file you are including in the main web page directory of your
>server (i.e.
>/webpages) and it will not show if you place the file within a subdirectory
>of /webpages where
>you may have your template.html file.
>
>If you want to include a .txt file within a scipt what I use is:
>
>sub include {
># --------------------------------------------------------
># This is text to include. Use like an SSI.
>
>my $file = shift;
>open (FILE, "<$file") or die "Can't open $file ($!)";
>print <FILE>;
>close FILE;
>}
>## Then add this line wherever you want file included:
>
> |;
>&include ("dbside.txt");
>print qq|
>
>I use this for many scripts to include a footer and side menu within my
>displays. Especially
>for hosts sites which don't always allow SSI.
>
>Hope this help :)
>
>Lois
> =================
>
>
>
>On 3 May 2005 at 19:22, tom buckley wrote:
>
> > At a glance, mine is surely not the dumbest question ever asked
> > here, so
> > i'm going to try this again since I've fought with it for this darn
> > long now!
> >
> > It has got to be something I'm doing 'or not doing' here, because I
> > know
> > there is 'a way' to make an "include" work on my server, either with
> > or without ssi.. Testing as free script that uses a template.html
> > page with " <!--content--> " as it's only place-holder for the
> > index.cgi page of the script, I have tried it both inside and outside
> > of the cgi-bin, and with every possible cfg and place-holder I can
> > think of, but I still cannot "include" the file! Someone "please"
> > steer me in the right direction here to make this work! Anything that
> > anyone can tell me to try, to include a file in another, I will
> > certainly give it a shot! Thanks ANYONE! harthon
> >
>
>--
>No virus found in this outgoing message.
>Checked by AVG Anti-Virus.
>Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 05/03/2005
>
>
>--
>Xitami Users Mailing List -- For Xitami support
>To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/