View Single Post
Old 03-13-2007, 02:50 PM  
Adult Site Traffic
Confirmed User
 
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
.php > perl troubles. Ideas anyone?

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
__________________

ALL Domains and Websites are GOING AWAY NOW! Ask me!
Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

.:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.
Adult Site Traffic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote