well, after a bunch of mucking around, i got it to work by doing the ouput buffer calls right before and after the smarty stuff...
ob_start();
$serendipity['smarty']->display(serendipity_getTemplateFile($serendipity['smarty_file'], 'serendipityPath'));
$stuff = ob_get_contents();
ob_end_clean ...
Search found 6 matches
- Tue Apr 11, 2006 12:00 pm
- Forum: Bugs
- Topic: problems embedding s9y
- Replies: 10
- Views: 6705
- Mon Apr 10, 2006 9:58 pm
- Forum: Bugs
- Topic: problems embedding s9y
- Replies: 10
- Views: 6705
Anger
:?
yes, it works fine on my server. i wonder what's up with godaddy's hosting that's breaking it. they're running fastcgi which might have something to do with it...
what are my options for making this work? can i modify index.php to output a variable rather than printing stuff out itself ...
yes, it works fine on my server. i wonder what's up with godaddy's hosting that's breaking it. they're running fastcgi which might have something to do with it...
what are my options for making this work? can i modify index.php to output a variable rather than printing stuff out itself ...
- Mon Apr 10, 2006 9:49 am
- Forum: Bugs
- Topic: problems embedding s9y
- Replies: 10
- Views: 6705
woops
didn't notice the new command. tried this
<?php
ob_start();
chdir("/home/content/c/j/j/cjjarvis/html/serendipity/");
require("/home/content/c/j/j/cjjarvis/html/serendipity/index.php");
chdir("/home/content/c/j/j/cjjarvis/html/");
$o1 = ob_get_clean();
echo $o1;
?>
same results -- nothing ...
<?php
ob_start();
chdir("/home/content/c/j/j/cjjarvis/html/serendipity/");
require("/home/content/c/j/j/cjjarvis/html/serendipity/index.php");
chdir("/home/content/c/j/j/cjjarvis/html/");
$o1 = ob_get_clean();
echo $o1;
?>
same results -- nothing ...
- Mon Apr 10, 2006 9:39 am
- Forum: Bugs
- Topic: problems embedding s9y
- Replies: 10
- Views: 6705
I looked at the ob_*() commands in the docs, and ran a couple test programs - it seems to be behaving properly except when i try to use it in conjunction with s9y. I looked at the index.php file, and it heavily relies on the ob_start, require_once, ob_get_contents, ob_end_clean structures throughout ...
- Mon Apr 10, 2006 9:30 am
- Forum: Bugs
- Topic: problems embedding s9y
- Replies: 10
- Views: 6705
- Mon Apr 10, 2006 9:08 am
- Forum: Bugs
- Topic: problems embedding s9y
- Replies: 10
- Views: 6705
problems embedding s9y
I've followed the docs, but something is not working. For examle, the following code works as expected :
<?php
ob_start();
echo test;
$o1 = ob_get_contents();
ob_end_clean();
echo $o1;
echo $o1;
?>
however
<?php
ob_start();
chdir("/home/content/c/j/j/cjjarvis/html/serendipity ...
<?php
ob_start();
echo test;
$o1 = ob_get_contents();
ob_end_clean();
echo $o1;
echo $o1;
?>
however
<?php
ob_start();
chdir("/home/content/c/j/j/cjjarvis/html/serendipity ...