help with using the blog embeded
Posted: Tue Jan 27, 2004 2:53 pm
i've been attempting to screw around with serendipity for a few days, and i still can't get something figured out
I am attempting to use the wrapper, just to have more control over the layout and i am stuck
so, here's what my wrapper.php looks like
this is my content.php
and here's what i get when i try to access wrapper.php in my borwser
As you can tell, i am totally new to PHP, crossing over from the ASP world
Any help is greatly appreciated
I am attempting to use the wrapper, just to have more control over the layout and i am stuck
so, here's what my wrapper.php looks like
Code: Select all
<?php
// Let serendipity generate our content:
ob_start();
require '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';
?>
Code: Select all
some stuff
<?php echo $blog_data ?>
Code: Select all
some stuff
Warning: Cannot modify header information - headers already sent by (output started at /home/pgutin/public_html/serendipity/wrapper.php:1) in /home/pgutin/public_html/serendipity/index.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at /home/pgutin/public_html/serendipity/wrapper.php:1) in /home/pgutin/public_html/serendipity/index.php on line 136
BLOG TITLE
blog description
No entries to print.
Any help is greatly appreciated