2007-03-02, 12:12 AM
2007-03-02, 12:41 AM
So, how exactly would I make the headers not interfere?
2007-03-03, 12:50 AM
You have to include the MyBB core files before anything that creates output (ie. header.php).
2007-03-03, 05:09 AM
Is there no way around this?
NOTE: I have a note code now.
Somebody gave me the above, saying that would aid my thing, but I still get an error.
NOTE: I have a note code now.
<?php
define("IN_MYBB", 1);
define("NO_ONLINE", 1);
include('your_forum_directory/global.php');
and then the rest of the code. That way you can then access all of the standard MyBB Vars for example $mybb, $db, and $language.
Somebody gave me the above, saying that would aid my thing, but I still get an error.
2007-03-03, 05:37 AM
DennisTT Wrote:You have to include the MyBB core files before anything that creates output (ie. header.php).
2007-03-03, 06:11 PM
You didn't literally add and then the rest of the code. That way you can then access all of the standard MyBB Vars for example $mybb, $db, and $language., did you? That's instructions to the programmer, not PHP code.
2007-03-03, 10:20 PM
Lol, of course not.
I put my own code where it gave the instructions.
I put my own code where it gave the instructions.
Quote:You have to include the MyBB core files before anything that creates output (ie. header.php).And how exactly would I do that? What exactly do you mean by that?
2007-03-03, 10:26 PM
This
include('your_forum_directory/global.php');
Has to go before anyecho
statements, or anything else which creates output.2007-03-04, 06:37 AM
And indeed, I did.
I know far from before on my PHP programming knowledge that sessions and connections must be created before any output, even before HTML. Although, I ahve never come across such a coding problem such as this.
I know far from before on my PHP programming knowledge that sessions and connections must be created before any output, even before HTML. Although, I ahve never come across such a coding problem such as this.
2007-03-04, 07:23 AM
Quote:output started at /home/aiwanei/public_html/taguild/header.php:13
Clearly something is being sent to the browser on line 13 of header.php.