<?php $site='sometexthere'; include("http://url-on-the-same-server-but-another-domain.com/counter.php") ?>
so the counter.php needs the "$site" variable to do some Ifs, but it seems to just don't have it at all. even a "echo $site" in counter.php does NOT output anything
what it can be?
thanks
Doesn't make sense, but maybe try putting them on seperate lines.
<?php $site='sometexthere'; include("http://url-on-the-same-server-but-another-domain.com/counter.php"); ?>
Hi,
I think the problem here is that including a remote script doesn't include the source at all but the already parsed output of the script. If the script is on the same server and php has read access to the directory of the other domain then include the script locally. Another solution that might work is to create a copy of the count script with an extension like e.g. .txt instead of .php so that php won't parse the script at all. But this will also be a security hole (anyone could read the code just by opening that url with a browser) unless you restrict access to the renamed file.
Thomas