Solved

tracking cgi script

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

740 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