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
Solved

How to detect RELOAD in cgi? and how to get the date in cgi?

Posted on 1997-06-07
2
213 Views
Last Modified: 2013-12-25
Except these two questions, I also want to know if there is a way to figure out who *are* currently on my page. (say
currently several people are visiting my page, I want to
figure out who they are).

About RELOAD, I want to detect if someone click on the
"RELOAD" button in cgi, as to date, if you can help, please
give details in how to get the date in my cgi, say
(currentTime = date(...) or something else)
0
Comment
Question by:carrot
2 Comments
 
LVL 5

Accepted Solution

by:
icd earned 80 total points
ID: 1828187
Two of these questions are related. How to detect a reload and how to find out who has loaded your page.

You can access an environment variable 'REMOTE_ADDR', in perl this would be $ENV{'REMOTE_ADDR'}

This will tell you the address of the person loading the page. By logging every page accessed and by whom you can detect reloads (i.e. a particular page has been loaded by someone who loaded it earlier on in the day).

The REMOTE_ADDR however is not very useful since you cannot always relate it to a particular person. If however you insist that anyone using your site provides a user name and password (by using the .htaccess method on UNIX for example) then you have access to environment variable REMOTE_USER which is more useful.

To get the date you can use the (UNIX) date command.


0
 

Author Comment

by:carrot
ID: 1828188
Edited text of question
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
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.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

856 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