2018-10-07, 10:34 AM
Yo. I'm a first-time poster, new MyBB user, and hoping I can get some assistance.
I have some PHP code that includes "global.php" and "functions_user.php". The problem is, including the former also outputs the forum's account login page.
Here is a picture of the output I'm referring to: https://puu.sh/BH4aP/137becbb0a.png
The desired goal is including the files with no output being generated, that way I'm free to use "echo" as a return/response value. Currently however, including "global.php" seemingly overwrites any "echo" calls, even those that come after the include statements.
Is there a way to stop "global.php" from automatically generating that forum page? Any other ideas that might produce a similar outcome? I have alternative ideas just in case there is no path forward with this, but being able to take this path would definitely get me from point A to point B with least resistance.
Thanks for reading.
I have some PHP code that includes "global.php" and "functions_user.php". The problem is, including the former also outputs the forum's account login page.
Here is a picture of the output I'm referring to: https://puu.sh/BH4aP/137becbb0a.png
The desired goal is including the files with no output being generated, that way I'm free to use "echo" as a return/response value. Currently however, including "global.php" seemingly overwrites any "echo" calls, even those that come after the include statements.
Is there a way to stop "global.php" from automatically generating that forum page? Any other ideas that might produce a similar outcome? I have alternative ideas just in case there is no path forward with this, but being able to take this path would definitely get me from point A to point B with least resistance.
Thanks for reading.