News:

Wondering if this will always be free?  See why free is better.

Main Menu

SSI headers already sent errors

Started by Aquilo, May 12, 2004, 04:19:50 AM

Previous topic - Next topic

Aquilo

ok, I've searched and have tried getting this to work using what I've read and when I fix one thing another pops it head up!

here is what I've got:
this was the main error
<?php
$ssi_gzip 
1;
$ssi_ban 1;
$ssi_title 'The North Winds Community Forum';
$ssi_layers = array('main');

include_once 
'SSI.php';

here is a live page like this
http://www.aquilo.us/NorthWinds/news.php

this errors I was getting:
<?php
$ssi_gzip 
1;
$ssi_ban 1;
$ssi_title 'The North Winds Community Forum';
$ssi_no_doctype true;
$ssi_layers = array('main');

include_once 
'SSI.php';

here is a live page like this
http://www.aquilo.us/NorthWinds/news1.php

this was to fix the headers already sent error
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
$ssi_gzip 
1;
$ssi_ban 1;
$ssi_title 'The North Winds Community Forum';
//$ssi_no_doctype = false;
$ssi_no_doctype true;
$ssi_layers = array('main');

include_once 
'SSI.php';

here is a live page like this
http://www.aquilo.us/NorthWinds/news2.php

I can't get it to work either way, it work on localhost but when I get it to a live server it's messed up!

also how do you set the title?

AmphetaMarinE

Try doing it before your <!doctype> declaration....
On the First line.

Good luck mate,
Amph.
Sign Here: X..........................................................................................

[Unknown]

http://www.aquilo.us/NorthWinds/news1.php

Works for me...

Also, you can try this:

<?php
$ssi_gzip 
1;
$ssi_ban 1;
$ssi_layers = array('main');

// What's this one?
$ssi_title 'The North Winds Community Forum';

ob_start();

include_once 
'SSI.php';


-[Unknown]

Oldiesmann

news1.php works but news2.php gives all the "headers already sent" errors...
Michael Eshom
Christian Metal Fans

Aquilo

#4
Quote from: [Unknown] on May 12, 2004, 02:24:10 PM
http://www.aquilo.us/NorthWinds/news1.php

Works for me...

Also, you can try this:

<?php
$ssi_gzip 
1;
$ssi_ban 1;
$ssi_layers = array('main');

// What's this one?
$ssi_title 'The North Winds Community Forum';

ob_start();

include_once 
'SSI.php';


-[Unknown]

yes it works without errors but it's not using the CSS files, notice the rest of them are nicer and everything on that one is messed up!? not having the doctype seems to be doing that but how can I fix that? something is not coordinating correctly or something!

Quote// What's this one?
$ssi_title = 'The North Winds Community Forum';
that was me trying to get the title to work!
I fount this worked just fine :D
$context['page_title'] = 'The North Winds Community Forum';

[EDIT] Thanks for the "ob_start();" line! 100% more speed out of SSI.php now! ;D

[Unknown]

I get the css on all examples.

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7b) Gecko/20040406 Firefox/0.8.0+

-[Unknown]

Aquilo

I'm going to have to do away with all the div's and go with tables because they don't work right in firefox. ok so the CSS thing is an IE thing! is declaring the doctype a standard? and is IE doing this to comply? I guess the question is how to fix this!?

[Unknown]

Well:

news1: no doctype, font size huge.

news2: doctype, font size okay, but errors.

news: same as 2, but with less errors.

Try the ob_start() with the doctype.

-[Unknown]

Aquilo

yep that huge font is what bothers me!

here is the source for news1 it has ob_start() but still messes up.
http://www.aquilo.us/NorthWinds/news1.txt

[Unknown]

Remove this line:

$ssi_no_doctype = true;

The doctype means good size font.  No doctype means ugly font.

-[Unknown]

Aquilo

thanks news1 works!
http://www.aquilo.us/NorthWinds/news1.php


so I should put ob_start(); before including SSI.php for now on?

once again thanks!

Oldiesmann

Looks nice... How did you do that 5 most recent karma awards thing?
Michael Eshom
Christian Metal Fans

[Unknown]

There's a topic about that here, actually... in this board.

-[Unknown]

Aquilo

thanks Oldiesmann! and more thanks to [unknown]! after that fix, it took 2 minutes to get it site wide! thanks!

Advertisement: