Results 1 to 2 of 2
Jul 17, 2010, 16:03 #1
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:
<?php $siteurl = ($_SERVER["HTTP_HOST"] == 'localhost') ? 'http://localhost/websites/blah' : 'http://www.blah.com/user'; define('ABSPATH2', $siteurl); $test = get_option('users_can_register'); ?>
<?php include '../func.php'; echo 'var register = "'.$test.'";'; echo 'var dir = "'.ABSPATH2.'/wp-content/themes/blah/c/"; ... ?>
Could someone help me understand what I'm doing wrong here? Why does the constant ABSPATH2 work flawlessly but not $test?
Jul 17, 2010, 17:23 #2
Sorry guys / gals... I think I figured this one out. I was over-thinking things.