![]() |
.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'); ?> Code:
<script> Code:
<!--#include virtual="/cgi-bin/stats/logger.cgi" --> TY A-S-T |
|
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.
|
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:2 cents: |
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 . |
Duplicate post
|
could also try curl()... or rewrite the counter ;-)
|
.. I might just stick it in an .shtml page and then include that. Kind of the long way around, but it'll work.
|
Quote:
|
See me if you still cannot get it
|
Quote:
I prolly could make it work, eventually, but I'd much rather have someone do it ;) A-S-T . |
All times are GMT -7. The time now is 03:46 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123