starview
asked on
tracking cgi script
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.
#!/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"
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Is that really formmail.cgi or one of the alternate versions?
ASKER
That did the trick thank you
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.
ASKER