![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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"); ?> 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> Code:
<!--#include virtual="/cgi-bin/stats/logger.cgi" --> ![]() 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!! ::. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Totally Borked
Industry Role:
Join Date: Feb 2005
Posts: 6,284
|
__________________
![]() 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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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!! ::. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
|
Duplicate post
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
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!! ::. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Totally Borked
Industry Role:
Join Date: Feb 2005
Posts: 6,284
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Industry Role:
Join Date: Nov 2006
Posts: 1,090
|
See me if you still cannot get it
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
|
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!! ::. |
![]() |
![]() ![]() ![]() ![]() ![]() |