Customizing SMF > SMF Coding Discussion

SSI headers already sent errors

(1/3) > >>

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

--- Code: ---<?php
$ssi_gzip = 1;
$ssi_ban = 1;
$ssi_title = &#39;The North Winds Community Forum&#39;;
$ssi_layers = array(&#39;main&#39;);

include_once &#39;SSI.php&#39;;
--- End code ---
here is a live page like this
http://www.aquilo.us/NorthWinds/news.php

this errors I was getting:

--- Code: ---<?php
$ssi_gzip = 1;
$ssi_ban = 1;
$ssi_title = &#39;The North Winds Community Forum&#39;;
$ssi_no_doctype = true;
$ssi_layers = array(&#39;main&#39;);

include_once &#39;SSI.php&#39;;
--- End code ---
here is a live page like this
http://www.aquilo.us/NorthWinds/news1.php

this was to fix the headers already sent error

--- Code: ---<!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 = &#39;The North Winds Community Forum&#39;;
//$ssi_no_doctype = false;
$ssi_no_doctype = true;
$ssi_layers = array(&#39;main&#39;);

include_once &#39;SSI.php&#39;;
--- End code ---
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.

[Unknown]:
http://www.aquilo.us/NorthWinds/news1.php

Works for me...

Also, you can try this:


--- Code: ---<?php
$ssi_gzip = 1;
$ssi_ban = 1;
$ssi_layers = array(&#39;main&#39;);

// What&#39;s this one?
$ssi_title = &#39;The North Winds Community Forum&#39;;

ob_start();

include_once &#39;SSI.php&#39;;
--- End code ---

-[Unknown]

Oldiesmann:
news1.php works but news2.php gives all the "headers already sent" errors...

Aquilo:

--- 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:


--- Code: ---<?php
$ssi_gzip = 1;
$ssi_ban = 1;
$ssi_layers = array(&#39;main&#39;);

// What&#39;s this one?
$ssi_title = &#39;The North Winds Community Forum&#39;;

ob_start();

include_once &#39;SSI.php&#39;;
--- End code ---

-[Unknown]

--- End quote ---

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';
--- End quote ---
that was me trying to get the title to work!
I fount this worked just fine :D

--- Code: ---$context['page_title'] = 'The North Winds Community Forum';
--- End code ---

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

Navigation

[0] Message Index

[#] Next page

Go to full version