nrg_alpha wrote:I am not familiar with SSI scripts.. do they absolutely have to occupy the very first lines in your xhtml document? If not, then have my first snippet at the very top (and I do mean this literally.. as in when you open the xhtml document, the very first thing you see is the first snippet I offered). If however this SSI thing needs to occupy the very top, then I'm not sure what the solution would be.
Yeah, it does. I have tried to do as you suggested. But, reading what you said, would the problem be that the files I'm working with are .php, and not .xhtml? Is there a difference? The SSI needs to be on the first line, but maybe there is a way around that, if we could code the two into one, maybe?
First line of index.php:
<?php require("forums/SSI.php"); ?>
stylechanger.php:
<?php
$theStyle = $HTTP_GET_VARS["style"]; /* querystring */
setcookie("style", $theStyle, time()+36000, "/", "");
header("Location: $HTTP_REFERER");
exit; ?>
nrg_alpha wrote:
What does your SSI script do? Perhaps there is another solution that doesn't require it? Also, just out of curiosity..if you removed the SSI script, but implemented my snippets, does it work? I have used my snippet on a site before and it worked perfectly. so I'm just curious as to how things work without the SSI script.
My SSI scripts manages the information from the MySQL database, from my forum so that the following scripts will work:
<?php ssi_boardStats(); ?>
and
<?php ssi_recentPosts(); ?>
Without the SSI include, the SSI scripts (the ones just above) wouldn't work.
Would it be possible to combine the SSI include script, and your script into one, so both are on line 1?
Do you have any instant messengers? Maybe we could look into the problem that way. Would make things a bit easier.