Solved

tracking cgi script

Posted on 2014-11-25
5
199 Views
Last Modified: 2014-11-25
I have a little cgi script that will send to my email address when I person goes into my web page



#!/bin/usr/bin
    # set this to the location of your server's mail program
    # (obtain this info from your hosting provider)
    $mailprog = '/usr/sbin/sendmail-t-i';
    # set this to your email address
    $email = 'sales@xxxxx.com';
    # to use this script, add the following html
    # tag to whichever page you want to track:
    #
    #<img src="/cgi-bin/tracker.cgi" width="0" height="0">


I have the permission set at 755

When I go into my web site it goes to
pages/ home.htm
The tracker.cgi files is in the pages folder set at 755
and I have with in the home.htm
<img src="/cgi-bin/pages/ tracker.cgi" width="0" height="0">



Put can not seem to get it to work.

Iam not sure what I am doing wrong here.
0
Comment
Question by:starview
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40465990
Try width="1" height="1".  I think some browsers take 0/0 to mean it doesn't exist.  In addition, if it is really in "/cgi-bin/tracker.cgi", why are you putting "/cgi-bin/pages/ tracker.cgi" in the "home.htm" file?
0
 

Author Comment

by:starview
ID: 40466013
Sorry I left it out the "pages" when I was typeing  here
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40466031
Is that really formmail.cgi or one of the alternate versions?
0
 

Author Closing Comment

by:starview
ID: 40466038
That did the trick thank you
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40466199
You're welcome.  We had a question once where somebody put width="0" height="0" and they just couldn't get it to work.  I have also noticed that all the tracking images are width="1" height="1" so I figured that meant something because I'm sure they'd put width="0" height="0" if it worked.
0

Featured Post

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question