?
Solved

tracking cgi script

Posted on 2014-11-25
5
Medium Priority
?
213 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 84

Accepted Solution

by:
Dave Baldwin earned 2000 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 84

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 84

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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

764 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