i just changed the opening and closing tags a little (you didnt need so many) but the main change is, now the variables come before the included file, so that the include file can access those variables too.
Holy cow, this gets simpler all the time. Pretty soon, there'll be nothing left on my page but PHP includes and echo functions!
Does this cut down on a website's file size? In other words, are the php includes effectively inactive when no one's viewing your main pages, leaving them empty of the included pages?
Here's another question. I'm replacing the ../ URL prefixes with the echo name $periods, so I can use these includes in pages on several levels, such as geobop/one and geobop/one/two, simply replacing $periods with ../../ or ../../../.
Below is some code from my include page:
<link href="<?php echo "$periods" ?>css/a1.css" rel="stylesheet" type="text/css" />
<link href="<?php echo "$periods" ?>css/MIDDLE.css" rel="stylesheet" type="text/css" />
<link href="<?php echo "$periods" ?>css/na/rockies.css" rel="stylesheet" type="text/css" />
But suppose there's a certain page where I don't want the style sheet in the middle - the one I named MIDDLE. Is there a way to mark it in the include page, then instruct the main page to either not import it or replace it with nothing ("")?
Thanks.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php