Embedeb Installation

Having trouble installing serendipity?
Post Reply
Olli-Ft

Embedeb Installation

Post by Olli-Ft »

Dear all,

I have some problems with the embeded installation.

I have tried several versions to get the embeded installation running.

The Last one is:

Code: Select all

## index.php

include ('inc/functions/functions.nav.php'); 
include('includes/layout/header.php'); // Header
include('includes/layout/navigation.left.php'); //Navigation left
?><div id="contentColumn"><?php
	include('includes/layout/navigation.right.php'); //Column right

	ob_start();
   require 's9y/index.php';
   $blog_data = ob_get_contents();
   ob_end_clean();
	
   // Now we include our normal content building file.
   // This one has to make use of your $blog_data variable to print
   // the content where appropriate!
 //  require 'content.php';

	require('includes/content.php'); //Content
?></div><?php 
include('includes/layout/footer.php'); //Footer
?>
and the output is written with the content.php

Code: Select all

switch($_GET['action']) {
 
.....
...
...
  case('13') :
              echo $blog_data;
   break;
}
my Problem is, that I always get the Error:

Code: Select all

Cannot modify header information - headers already sent by (output started at .....includes/layout/header.php:17) in .....s9y/index.php on line 19
Could anyone help me to setup the correct "actions" (Where, When how) how to implement the embeded installation.

Thank you !

Oliver
Olli-Ft
Posts: 1
Joined: Sun Oct 02, 2005 7:58 pm

Post by Olli-Ft »

Now been registered :-)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The problem is that when you include the s9y stuff, your script may not yet have emitted any output; and that is the cases in your header.php file.

You can bypass this by putting a "ob_start()" as the very first line in your index.php...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply