November 20, 2002

Bugs in PHP 4.2.2 / APACHE 2.0.40

Hey! Enki has moved his blog to Armyofevilrobots.com. Check it out after you are done here. This page is going nowhere though...

Found some new bugs in RedHat Linux 8.0 today, with a couple of workarounds. Here is the deal. Let us suppose that you install RedHat 8.0 and have some PHP scripts you are running... "BAD" idea.
Stick with RedHat 7.3. The problem is that 8.0 comes with Apache 2, which does not play nice with PHP yet. It is in fact still considered beta. The first bug I have run into is that cache control is whacky, exacerbated by what is reportedly an inconsistency in the way IE caches pages. My biggest problem was with PhpBB, since the codebase is fairly large. Here is the solution as brought to me by the nice people on the phpBB support board...

    I'm not running RH8, but RH7.1.
    I'm running Apache 2.0.39 and PHP 4.2.2, but I'm sure that it will work on later versions.

    I've had the same ridiculous problem with the browser-caching, I've solved it by adding some META TAGS to my overall_header and overall_footer HTML files in my style's template. (Yes, META TAGS in overall_footer too!)

    First, I've commented the three header() function calls that you can find in the phpbb file, located at [phpbb directory]/includes/page_header.php, near the end of the file, starting at the line number 449:

    header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
    header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
    header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');

    Comment them, so they look as follows:
    // header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
    // header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
    // header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');

    You can also just delete those three lines.
    Those lines puts a header in the html connection wich is sent to the user, due to the fact that those headers are included as POST data, they have more priority than conventional META TAGS. (I think is for that reason, not sure)

    So, now we don't have any cache-control information with the pages that are sent to our phpbb users. To ensure that the pages will be always reloaded, and not taken from the cache, I've added the conventional META TAGS to my overall_header.tpl file, located in [phpbb directory]/templates/[theme name]/

    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="Expires" content="-1">
    Remember that those metas have to be inserted inside the head ... /head tags. Also, I've read somewhere that some versions of IE browsers have a bug in their cache control, and the solution is to put one meta in other head ... /head section, located at the end of the HTML page.

    To do this, I've inserted the following lines in the file overall_footer.tpl, located in the same place as the header:

    <head>
    <meta http-equiv="PRAGMA" content="NO-CACHE">
    </head>
    Remember to insert those three lines outside the body ... /body tag, but inside the html ... /html tag, si it looks as follows:

    ------------------
    (... whatever HTML your overall_footer.tpl has ...)

    </body>
    <head;>
    <meta http-equiv="PRAGMA" content="NO-CACHE">
    </head>
    </html>
    ------------------ It worked fine for me, and without using the "touch" trick.
    Hope it works good for you too.
Posted by Enki at November 20, 2002 02:55 PM
Comments

Every man takes the limits of his own field of vision for the limits of the world.

Posted by: penis enlargement at October 1, 2004 11:43 AM

For Cialis information online.

Posted by: Cialis cheap at October 9, 2004 03:12 PM

Poker table online the way you are used to. Meet friends around the online poker table at http://www.pacificpoker-online.com and enjoy.

Posted by: Poker Table at October 11, 2004 01:20 PM

Use
fioricet for depression. Best
buy fioricet at online stores.
Cheapest
online fioricet can be found at
USA only. Buy
cheap fioricet buy read
fioricet side effects before
treatment.
http://www.buy-fioricet-here.us

Posted by: buy fioricet at October 12, 2004 03:59 AM

1155 http://www.texas-hold-em-i.com play texas hold em online here.

Posted by: texas hold em at October 12, 2004 04:39 AM

The real question is not whether machines think but whether men do.

Posted by: fleshlight at October 12, 2004 11:13 AM

816 http://www.e-texas-holdem.info

texas holdem

Posted by: texas holdem at October 13, 2004 12:08 PM

Info on Levaquin tablets.

Posted by: Levaquin at October 13, 2004 03:51 PM

7233 http://www.e-texas-hold-em.com

texas hold em

Posted by: texas hold em at October 14, 2004 06:10 PM

Seasonale online site.

Posted by: Buy Seasonale at October 15, 2004 03:18 AM

6808 http://www.rapid-debt-consolidation.com

consolidate debt

Posted by: debt consolidation at October 15, 2004 10:47 PM

Online Fioricet information site.

Posted by: Fioricet at October 17, 2004 04:14 PM

7936 http://www.e-roulette.info

Posted by: roulette at October 18, 2004 05:12 PM

Find blackjack rules http://www.blackjack-888.com/blackjack-rules.asp and tips. Learn and experience online blackjack immediately.

Posted by: Blackjack Rules at October 20, 2004 05:00 AM

Check out our poker table at http://www.pacificpoker-online.com. We have the best Poker Table in the world.

Posted by: Poker Table at October 20, 2004 12:39 PM

3889 online casino games

Posted by: casino games online at October 22, 2004 02:49 AM

Remeron info online.

Posted by: Remeron at October 22, 2004 11:51 AM

By recognizing a favorable opinion of yourself, and taking pleasure in it, you in a measure give yourself and your peace of mind into the keeping of another, of whose attitude you can never be certain.

Posted by: vimax at October 22, 2004 12:45 PM

Universal doubt cancels itself.

Posted by: penis pills at October 23, 2004 04:06 AM

456 .Way to poker online.

Posted by: online poker at October 23, 2004 11:41 AM

Check Effexor info site.

Posted by: Effexor at October 24, 2004 05:26 AM

Prescription Celexa

Posted by: Order Celexa at October 25, 2004 02:21 PM

The fundamental sense of freedom is freedom from chains, from imprisonment, from enslavement by others. The rest is extension of this sense, or else metaphor.

Posted by: penis enlargement pills at October 26, 2004 06:12 AM

Happy to read this, that's great guys!

Posted by: gazduire at October 26, 2004 02:19 PM

84 http://www.blackjack-1000.com
PlLAY the best blackjack-1000.com
debt consolidation only.

Posted by: free blackjack at October 26, 2004 09:22 PM

travel
online gambling
finances
homes
internet
health
shopping
insurance
education
careers
entertainment
business
internet marketing
autos
romance
You guys may find interesting these links.

Posted by: gifts at October 27, 2004 04:19 AM

Yes! from now on you can plat paradise poker also by clicking on Poker Stars. The poker paradise experience will even be better than just playing regular online paradise poker on a regular poker table.

Posted by: Paradise Poker at October 27, 2004 12:28 PM

1906 jobs online part time jobs work online work online from home work at home work from home online jobs work at home jobs work at home business jobs
Full time jobs dental plan dental
insurance
dental insurance
plan
discount dental
plans
cheap dental
plans
individual dental
plans

Posted by: jobs at October 28, 2004 12:56 AM

Hello.

I've been looking around and came across your site by accident. The information you link to from your home page is quite informative so thanks for taking the time to post it.

Joe
burn the fat feed the muscle with trimspa

Posted by: burn the fat feed the muscle with trimspa at October 28, 2004 03:58 PM

Hello there,

Iwas browsing the web and found this blog. Some interesting quotes. Keep them coming!

Alice
dexatrim side effects

Posted by: dexatrim side effects at October 29, 2004 10:24 AM

Mortgage Calculator Florida Mortgage Florida Mortgage Broker Florida mortgage lender Florida mortgage rates Florida Home Loans Mortgage Rates Mortgage Company http://mortgage-calculator.bestlowmortgagerates.com Mortgagehttp://www.bestlowmortgagerates.com mortgage refinanceFlorida mortgage loanmortgage interest rates

Posted by: Mortgage Calculator at October 29, 2004 04:58 PM

4804 Ttry playing online pokeronline.

Posted by: poker online at November 2, 2004 09:56 AM

Hello there,

Iwas browsing the web and found this blog. Some interesting quotes. Keep them coming!

Alice
personal loan advice

Posted by: personal loan advice at November 2, 2004 03:38 PM

4084 Kona Coffee Starbucks Coffee Jamaica Blue Mountain
Coffee
coffee maker gourmet coffee green mountain coffee kenya coffee organic coffee specialty coffee folgers coffee coffee brewers costa rica coffee Tullys Coffee Millstone Coffee coffee grinder http://www.coffee-delivered.com

Posted by: coffee at November 2, 2004 07:23 PM

You should enter the most inspiring and resourceful
online poker site on the web! We
are happy to present you with the most informative piece of data you can find on
the online poker. The best of
online poker tips,
online poker tournaments,
poker
game strategy, online pokers,
online poker rules.
To satisfy your curiosity, click on the online
online poker news,
and if you wish to download online
online poker, please do so http://www.online-poker-online.us !

Posted by: online poker at November 3, 2004 02:09 AM

You should enter the most inspiring and resourceful
online poker site on the web! We
are happy to present you with the most informative piece of data you can find on
the online poker. The best of
online poker tips,
online poker tournaments,
poker
game strategy, online pokers,
online poker rules.
To satisfy your curiosity, click on the online
online poker news,
and if you wish to download online
online poker, please do so http://www.online-poker-online.us !

Posted by: online poker at November 3, 2004 02:38 AM

Naeser's Law:
You can make it foolproof, but you can't make it
damnfoolproof.

Posted by: Party Poker at November 3, 2004 11:45 PM

Elidel cream info site.

Posted by: Elidel at November 4, 2004 06:38 AM

Money does not pay for anything, never has, never will. It is an economic axiom as old as the hills that goods and services can be paid for only with goods and services.

Posted by: vimax at November 4, 2004 12:24 PM

3155 http://www.e-online-poker.info
online poker

Posted by: online poker at November 4, 2004 08:39 PM

You should enter the most inspiring and resourceful
online poker site on the web! We
are happy to present you with the most informative piece of data you can find on
the online poker. The best of
online poker tips,
online poker tournaments,
poker
game strategy, online pokers,
online poker rules.
To satisfy your curiosity, click on the online
online poker news,
and if you wish to download online
online poker, please do so http://www.online-poker-online.us !

Posted by: online poker at November 6, 2004 06:42 AM

You should enter the most inspiring and resourceful
online poker site on the web! We
are happy to present you with the most informative piece of data you can find on
the online poker. The best of
online poker tips,
online poker tournaments,
poker
game strategy, online pokers,
online poker rules.
To satisfy your curiosity, click on the online
online poker news,
and if you wish to download online
online poker, please do so http://www.online-poker-online.us !

Posted by: online poker at November 6, 2004 07:31 AM

You should enter the most inspiring and resourceful
online poker site on the web! We
are happy to present you with the most informative piece of data you can find on
the online poker. The best of
online poker tips,
online poker tournaments,
poker
game strategy, online pokers,
online poker rules.
To satisfy your curiosity, click on the online
online poker news,
and if you wish to download online
online poker, please do so http://www.online-poker-online.us !

Posted by: online poker at November 6, 2004 10:51 AM

Thanks for the visit in your site. Come to pacific poker, or http://pacific-poker.p6.org.uk and have fun!

Posted by: Pacific online poker at November 7, 2004 03:14 AM

1013 http://www.top-online-poker.info
poker online

Posted by: poker online at November 7, 2004 04:23 AM

highest quality replica jewelry Rolex watch, wrist watch, Replica Watch purchase your affordable realistic Rolex replica watch today at http://www.pro-rolex-replica-watches.com

Posted by: Rolex Replica at November 8, 2004 12:43 PM

Florida Mortgage
Mortgage Calculator
Mortgage Calculator
Debt Consolidation
Loan Programs
Mortgage Rates
Commercial Mortgage
Construction Loans
Home Equity Loans
Home Equity Line of Credit
Mortgage Company
Mortgage Refinance
For a great
Mortgage Quote
Mortgage Advice

also visit

http://www.bestlowmortgagerates.com
http://mortgage-calculator.bestlowmortgagerates.com

Posted by: Florida Mortgage at November 8, 2004 07:38 PM

You should enter the most inspiring and resourceful
online poker site on the web! We
are happy to present you with the most informative piece of data you can find on
the online poker. The best of
online poker tips,
online poker tournaments,
poker
game strategy, online pokers,
online poker rules.
To satisfy your curiosity, click on the online
online poker news,
and if you wish to download online
online poker, please do so http://www.online-poker-online.us !

Posted by: online poker at November 9, 2004 12:08 PM

The stars of poker party poker http://party-poker.freeserverhost.com party poker sky. Join the poker room at party poker have fun and invite you friends to paradise.

Posted by: Party Poker at November 9, 2004 01:11 PM

7601
directv
direct tv directv satellite direct tv satellite directv dvr direct tv dvr direct tv tivo directv tivo directway
direcway
directway internet directway satellite direcway internet direcway internet free hbo free cinemax free dvd player satellite radio http://www.satellitetvboutique.com

directv
direct tv
directv satellite direct tv satellite directv dvr direct tv dvr direct tv tivo directv tivo directway
direcway
directway internet directway satellite direcway internet direcway internet free hbo free cinemax free dvd player satellite radio http://satellite-tv.cjb.net

Posted by: direct tv at November 10, 2004 03:39 AM

You should enter the most inspiring and resourceful
online poker site on the web! We
are happy to present you with the most informative piece of data you can find on
the online poker. The best of online poker tips, online pokers tournaments,
online poker
strategy, online poker games,
online poker rules.
To satisfy your curiosity, click on the online
online poker news,
and if you wish to download online poker game, please do so http://www.online---poker.us !

Posted by: online poker at November 11, 2004 11:08 AM

Excellent day for drinking heavily. Spike office water cooler.
Mortgage Refinancing http://www.refinance-mortgage-com.com

Posted by: Mortgage Refinancing at November 12, 2004 01:09 AM

The best bitches on the web

Posted by: weak sister bitch at November 12, 2004 01:11 PM

7309 http://www.all-texas-holdem.info
texas holdem poker

Posted by: texas holdem poker at November 12, 2004 01:21 PM

seasonale birth control

Posted by: Seasonale Birth Control at November 13, 2004 09:49 PM

Online blackjack http://www.blackjack-888.com online blackjack game and pleasure. Try the best online blackjack in the world.

Posted by: Online Blackjack at November 14, 2004 12:42 AM

Nice site.

Posted by: buy used cars online at November 14, 2004 04:47 AM

Payday Loans - Cash Advance

Posted by: Payday Loans at November 14, 2004 08:58 AM

All the world's a stage, And all the men and women merely players.They have their exits and their entrances; And one man in his time plays many parts... zovirax buy zovirax For they are yet ear-kissing arguments.

Posted by: zovirax at November 15, 2004 08:21 PM

A priest was walking along the cliffs at Dover when he came
upon two locals pulling another man ashore on the end of a rope.
That's what I like to see, said the priest, A man helping his fellow
man.
As he was walking away, one local remarked to the other, Well,
he sure doesn't know the first thing about shark fishing.
Mortgage Refinance http://www.refinance-mortgage-com.com

Posted by: Mortgage Refinance at November 15, 2004 09:05 PM
Post a comment









Remember personal info?