The problem is that the main page doesn't use an include file of any sort;
it's straight HTML which is frequently updated by hand. I agree that it
would be nice if /index.htm had an include file that contained most of the
content, and if I could convince my boss that it would be the best way to
go, then I'd be set. :) Unfortunately, that's not the route that we've
chosen to go (in fact, I'm still at the stage where I'm trying to convince
people around here that PHP is a much better way to go than straight HTML
for some of these documents). So, if I were using an include file to build
/index.htm, then I would use it in microsite45/index.htm. But since I'm
not, I can't. I've got permission to use document.write in /index.htm, so I
was looking for a solution which would allow /index.htm to remain nothhing
but static HTML (with the exception of some JavaScript).
-----Original Message-----
From: Jason Brooke [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 3:37 PM
To: Richard S. Crawford
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] FW: Cookies, Dammit!
I hope you don't mind me nagging on this ;) but what do you mean by having
to echo changes into the /minisite directories?
What I meant was, from minisite45/index.htm, include() the same content
include file you use in /index.htm. I'm not seeing why the
/minisite<x>/index.htm pages need to change at all? The only thing that
would change is the content of the include()'d file that /index.htm, and the
minisite/index<x>.htm include.
/index.htm
<html>
<etc etc>
<body...>
<? include "main_include.inc"; ?>
</body>
</html>
main_include.inc:
<some possible html tags>
<? echo "Welcome". ($minisite ? " from $minisite" : "."); ?>
<some possible html tags>
/minisite45/index.htm
<html stuff>
<?
$minisite = 45; /* or even a snip that dynamically gets it from the
script_name */
include "main_include.inc";
?>
----- Original Message -----
From: "Richard S. Crawford" <[EMAIL PROTECTED]>
To: "Jason Brooke" <[EMAIL PROTECTED]>; "Richard S. Crawford"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, January 17, 2001 9:19 AM
Subject: RE: [PHP] FW: Cookies, Dammit!
> The first approach is actually what we do now. However, since /index.htm
is
> a dynamic page which changes frequently, we don't want to have to try to
> echo all of those changes into all of the /minisite directories (of which
> there are well over 100) every single time a change occurs. We're going
to
> try the second approach now, but we still are going to try to build the
> query string of the Location: header based on values retrieved from a
MySQL
> database.
>
> --
> Richard S. Crawford
> Senior Web Developer
> NeuroHub, Inc.
> (916)789-4167 / (530)307-0069(cell)
> AIM Handle: Buffalo2K
> http://www.neurohub.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]