Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-13-2007, 02:50 PM   #1
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
Old 03-13-2007, 02:59 PM   #2
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
virtual();?
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-13-2007, 03:04 PM   #3
donborno
Confirmed User
 
Join Date: Jan 2007
Location: Vienna, Austria
Posts: 374
What's the output of that counter? If it's an image you only need to include <img src="http:domain.com/cgi-bin/counter.cgi" alt="Counter" title="" /> in your template.
donborno is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-13-2007, 03:19 PM   #4
Meaty&Needy
Registered User
 
Join Date: Aug 2006
Posts: 47
I would think include() should do it. If you just go to domain.com/cgi-bin/counter.cgi in your browser, does the counter increment?

What about your allow_url_fopen and allow_url_include ? You'd have to have those turned on in include() or fopen() a URL.

hth
__________________
www.dddoug.com - web design/coding/programming, graphics, video
Meaty&Needy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-13-2007, 03:28 PM   #5
Adult Site Traffic
Confirmed User
 
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
It technically is an image SOURCE, but it's really a page, no image exists.

Yea, the counter is working, I have it on 3 other sites for this guy, running from his admin domain, it's just when I use the JS version, it leaves the code open for snooping to the login, which isn't real secure.

He's going to start getting affiliate traffic in a couple of weeks, so I just want to tighten down the sites some.

When I use the SSI (or include .php) version, it only displays "<!--Logged User-->" in the page source, not the full path to the script. That's why I want to do it this way.

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
Old 03-13-2007, 03:28 PM   #6
Adult Site Traffic
Confirmed User
 
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
Duplicate post

Last edited by Adult Site Traffic; 03-13-2007 at 03:31 PM..
Adult Site Traffic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-13-2007, 03:30 PM   #7
naitirps
Confirmed User
 
Join Date: May 2004
Location: ...
Posts: 761
could also try curl()... or rewrite the counter ;-)
__________________
Programmer
ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com
naitirps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-13-2007, 03:32 PM   #8
Adult Site Traffic
Confirmed User
 
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
.. I might just stick it in an .shtml page and then include that. Kind of the long way around, but it'll work.
__________________

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
Old 03-13-2007, 03:47 PM   #9
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by Adult Site Traffic View Post
When I use the SSI (or include .php) version, it only displays "<!--Logged User-->" in the page source, not the full path to the script. That's why I want to do it this way.
that will always give you the relative path, not the full path - you need to cwd() to the script directory before including (with virtual() for eg), if that's what is causing you probs...
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-13-2007, 03:48 PM   #10
PHP-CODER-FOR-HIRE
Confirmed User
 
Industry Role:
Join Date: Nov 2006
Posts: 1,090
See me if you still cannot get it
__________________
PHP-CODER-FOR-HIRE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-13-2007, 03:54 PM   #11
Adult Site Traffic
Confirmed User
 
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
Quote:
Originally Posted by PHP-CODER-FOR-HIRE View Post
See me if you still cannot get it
Ahso!

I prolly could make it work, eventually, but I'd much rather have someone do it ;)

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
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.