[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 1997-06-07
2
Medium Priority
?
225 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
[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
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

649 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