This is hard for me to explain so I hope you'll bear with me on this...
I have 2 files: func.php and sizer.php.
So inside of func.php, I have the following code:
$siteurl = ($_SERVER["HTTP_HOST"] == 'localhost') ? 'http://localhost/websites/blah' : 'http://www.blah.com/user';
$test = get_option('users_can_register');
...and inside of sizer.php, I have the following:
echo 'var register = "'.$test.'";';
echo 'var dir = "'.ABSPATH2.'/wp-content/themes/blah/c/";
Firefox with Firebug is indicating that there's a missing semi-colon. It's also telling me that I'm making a call to an undefined function from within func.php. I have no idea why or what's going on here because when I echo $test, it outputs perfectly fine with the right value(s) but when I try to use $test from within sizer.php, it breaks.
Could someone help me understand what I'm doing wrong here? Why does the constant ABSPATH2 work flawlessly but not $test?