I have tried to get suport for this problem all over the place, without any luck, so I thought I might try it here.
I am running cjultra (www.cjultra.com) in the directory http://barfland.com/refs/
In the main index page http://barfland.com/index.php , I have included the file with the syntax
include(‘refs/in.php’);
and that works great. Now, most of my traffic comes in to my forum, in the phpBB directory http://barfland.com/forum
Now, I have installed the required phpBB mod to allow php includes in the phpBB templates.
Using:
include(‘[url]http://barfland.com/refs/in.php’[/url]);
in the forum index.php or overall_header.tpl template gives me the cookie javascript in the source, but it isn’t counting the incoming hits. (the script is supposed to add a cookie to the browser source code when its been accessed correctly)
When I try to use
include(../refs/in.php’);
the forum index page goes blank.
In the scripts' directions, they mentioned that if you are including the script into a php page that is out of the directory the script was installed in to use the code:
$cju_dr = getcwd();
chdir($cju_dr . "/folder");
include("in.php");
chdir($cju_dr);
So I used both:
$cju_dr = getcwd();
chdir($cju_dr . "../refs");
include("in.php");
chdir($cju_dr);
and also
$cju_dr = getcwd();
or chdir($cju_dr .. “/refs”;
include("in.php");
chdir($cju_dr);
When I try those, either nothing happens, ie, I don’t get the cookie; or I get the same blank page that I got previously.
I've tried to install all of these variations of code in about every possible place. In the cases where I use ../refs/in.php the page goes blank from everywhere after the include (If I put it in the overall_template the whole page goes blank, but if I do it in the overall_footer I loose just the footer)