[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [include file... ]
****** message to minivend-users from Larry Leszczynski <larryl@furph.com> ******
Hi Brian -
> What I have is 2 domain names that share a database. I want the flypage to
> include a sidebar, /sidebar.html for instance. That way, both domains look
> like they have their own database, even though the flypage is identical,
> just including different files.
It sounds like the flypage should include the equivalent of either
http://www.aaa.com/sidebar.html
or
http://www.bbb.com/sidebar.html
depending on which site the catalog is accessed from.
You could use perl or a UserTag to grab the environment variable
$ENV{'DOCUMENT_ROOT'} (set by the web server and specific for requests
from either www.aaa.com or www.bbb.com) and create the include tag. You
probably will need to check the archive for ideas how to get access to the
CGI environment, for example:
http://www.minivend.com:80/minivend/minivend-list/1998-old/0774.html
Larry
> >Hi Brian -
> >
> >> Is is possible to use the [include file="/home/httpd/whatever.html"] as
> >> a virtual path, not an absolute path? I want to include a file relative
> >> to the web sites document root, not based on location on the hard drive
> >> or the catalog root.
> >
> >We usually set a catalog.cfg variable to point to the document root like
> >so:
> > Variable DOCROOT /usr/local/wwwsites/__SERVER_NAME__/htdocs
> >
> >If you did the same, you could do:
> > [include file="__DOCROOT__/whatever.html"]
> >
> >
> >Larry Leszczynski
> >larryl@furph.com
> >--
> > furph, Inc. WWW/Unix/Windows Solutions 734-513-7763 (voice)
> >info@furph.com http://www.furph.com 734-513-7759 (FAX)
>
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>
Larry Leszczynski
larryl@furph.com
--
furph, Inc. WWW/Unix/Windows Solutions 734-513-7763 (voice)
info@furph.com http://www.furph.com 734-513-7759 (FAX)
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list