Gossamer Forum
Home : General : Perl Programming :

remote counter

Quote Reply
remote counter
Is there a way to execute a cgi script on remote server, like a counter does?
I am trying to write similar to NedStat counter, but with out a picture, just execute the script. SSI?

Deos any one knows how to do this?


Regards,

Pasha

------------------
webmaster@find.virtualave.net
http://find.virtualave.net
Quote Reply
Re: remote counter In reply to
use a 1x1 transparent image thats the only way that I know of.

------------------
elitecaraudio.com
carforums.com
Quote Reply
Re: remote counter In reply to
Yes, but i need to call my script from a remote machine:
I am installing a search engine for my friend on his server, but he wasn't very honest before, so i can't trust him now (when he says that he got 30.000+ hits per day).
So i need to add a little function to that search engine. A function to call my counter script, so I could know how honest he really is.
This is important to me, because we plan to do some advertising between our sites.

Any help will be appreciated.

Pasha

------------------
webmaster@find.virtualave.net
http://find.virtualave.net
Quote Reply
Re: remote counter In reply to
Can you use SSI on *his* server? I would presume so, when you're installing a search engine for him.

This is the SSI for executing a CGI on the server:

<!--#exec cgi="/path/to/cgi.cgi"-->

Where "/path/to/cgi.cgi" is the path from the document root, not server root. But unless you're both on the same machine, I don't thing that will do it. The 1x1 gif *is* a way of doing it though, it's called by executing a cgi on another server like:

<img src="http://yourserver.com/cgi/cgi.cgi" width=1 height=1>

and this cgi can then count the number of times it was loaded on *your* server.

Have a look around cgi-resources.com at the counter scripts, that might help.

adam

[This message has been edited by dahamsta (edited April 08, 1999).]