Solved

tracking cgi script

Posted on 2014-11-25
5
188 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Python 2.7 - French characters 6 58
wordlen challenge 3 60
Sed question 2 68
Need to Modify a Script I found 5 92
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This article will show, step by step, how to integrate R code into a R Sweave document
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

929 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now