[Xitami] Problem with refresh with php and phpbb
Tom Ringate
xitami@lists.xitami.org
Sat, 6 Sep 2003 20:12:24 -0400
Alejandro,
Success, it does solve the problem on the newer release of XITAMI. I also
discovered that release 2.4d9 does not have this problem, so it is something
that changed when they came out with release 2.5b5.
The Apache2 server also works just fine, but I did see some code in the
PHPbb modules that looks like they are doing something a little like what
you sent to me if the server is Apache2.
Not being a programmer, I did as you said, and placed it in about five of
the modules I could identify easily as generating some of the pages I am
having a problem with. It immediatly fixed those pages, however there are
still several pages where the problem still exists.
Rather than just placing this into every module, I decided to place a
request for help on the PHPbb support forum to see if someone there knows a
more eligent way to do this.
I am a little afraid to just put it in all the modules, because I suspect
some modules call other modules, and then I should get the error you
mentioned about the header already being written.
I'll keep my fingers crossed that someone gives me some direction on which
modules to edit. But for now, the main page is now refreshing, so 70% of
the problem is solved since that was the most noticable failure.
Tom R.
----- Original Message -----
From: "Alejandro Martinis" <amartinis@jrwilliams.com.uy>
To: <xitami@lists.xitami.org>; "Tom Ringate" <tringate@tampabay.rr.com>
Sent: Saturday, September 06, 2003 5:03 PM
Subject: RE: [Xitami] Problem with refresh with php and phpbb
> Tom:
>
> For some reason your server refuses my message, so I am writing again to
the
> list.
>
> Regarding the code
>
> <?php
> header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
> header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
> header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
> header ("Pragma: no-cache"); // HTTP/1.0
>
> It MUST be the very first thing written to the page, otherwise you will
get
> a "header already written" error, so it is a good practice to put it right
> up at the beginning of the code.
> If you haven't written the program, (and by the way I don't know the
> application you mention ) you could try looking at the page name that is
> being cached and not refreshed, and edit the corresponding php file and
add
> these lines at the very top.
>
> You would not need to add this to php files that only do internal
> calculations or otherwise are not involved in any html output.
>
> Now, if you suspect that there is more than one file involved in the
> creation of the page, I would suggest you add it to every php file that
> generates html content, since it should not affect the performance of the
> application.
>
> You're welcome to post any other question just as each of us is. Let me
know
> how it went.
>
> Take care and good luck,
>
> Alejandro.
>
>
>
>
>
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.515 / Virus Database: 313 - Release Date: 1/09/2003
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>