I'm writing some PHP using the code section on one of my Wb pages and would like to include some code using the include(' '); statement. However, when I do this, I lose functionality of the WB code.
For example, if I want to display "Hello <username>" using the WB code section, this works:
global $wb;
echo '<p>Hello: '.$wb->get_username().'</p>';
However, if within the WB code section I write
include('otherPphScript.php');
and within otherPhpScript.php I have
global $wb;
echo '<p>Hello: '.$wb->get_username().'</p>';
then I get no output whatsoever.
Anyone know what's going on?
Thanks.