I have a perl counter that I want to include in .php pages, but no matter what I do, it doesn't work.
It's just a counter that I can include with JS, but I don't want to do that.
Here's what I've tried, doesn't work and I don't mess with perl much at all.
Code:
<? require('http://domain.com/cgi-bin/counter.cgi'); ?>
--
<? include_path="/hsphere/local/home/account/domain.com/cgi-bin/counter.cgi" ?>
--
<? require('/hsphere/local/home/account/domain.com/cgi-bin/counter.cgi'); ?>
--
<? require_once('/hsphere/local/home/account/domain.com/cgi-bin/counter.cgi'); ?>
--
<? include('/hsphere/local/home/account/domain.com/cgi-bin/counter.cgi');?>
--
<? include('http://domain.com/cgi-bin/counter.cgi');?>
--
<?php virtual("/hsphere/local/home/account/domain.com/cgi-bin/counter.cgi"); ?>
Here's the JS version:
Code:
<script>
a=new Image();
refer=document.referrer;
doc=document.location;
x=screen.width;
y=screen.height;
a.src="http:/ /domain.com/cgi-bin/stats/logger.cgi?ref="+escape(refer)+"&doc="+escape(doc)+"&res="+x+"x"+y;
</script>
Here's the SSI version:
Code:
<!--#include virtual="/cgi-bin/stats/logger.cgi" -->
Any ideas? I've tried Google, but I can't come up with anything useful
TY
A-S-T