PDA

View Full Version : Missing globals in bbclone


takin
08-10-2006, 09:45 AM
I've been using BBClone, a PHP web counter, for years, but am having trouble getting it to work with WordPress. It is losing global variables in the $bbc_marker class.

It's still working with the PHP pages I've coded on the same site, but when I run it through the blog, the variables are lost in the class constructor.

Specifically, if I echo $BBC_CACHE_PATH outside the class, I get a full path. But if I do the same immediately after the constructor line:
global $BBC_CACHE_PATH, $BBC_COUNTER_PREFIX, $BBC_COUNTER_SUFFIX, $BBC_IGNORE_IP, $BBC_SEP, $BBC_TIMESTAMP,
$BBC_TIME_OFFSET;
the variable is empty.

I've run phpinfo() in both my old pages and through the blog to check that I'm using the same instance of PHP and I'm sure I am.

I'll try posting this on the BBClone forum too, but I've had good help from this site in the past so I'm more confident of a good response here.