How many times browser on each computer has contacted server, Computer Engineering

Assignment Help:

Write a CGI program that displays a count of how many times a browser on each computer has contacted the server.

echo Content -type: text /html

echo

N=$QUERY_STRING

Echo "< HTML >"

Case "x$N" in

x) N = 1

Echo "This is the initial page.< BR >< BR >"

; ;

X[0-9]*) N = 'expr$n + 1'

Echo "you have displayed this page $N times.< BR >< BR >

; ;

*) echo "The URL you used is inval id < /HTML >"

exi t 0

; ;

esac

echo "< A HREF=\ht tp: / /$SERVER_NAME$SCRIPT_NAME?$N\ >"

echo " Click here to refresh the page. < / A>"


Related Discussions:- How many times browser on each computer has contacted server

Explain briefly the function of layers, Explain briefly the function of dif...

Explain briefly the function of different layers which are covered under end to end layer connectivity. Different layer are as follows: 1. Transport Layer:  This is res

Challenges in changing information technology, Q: Challenges and Prospects ...

Q: Challenges and Prospects in Changing Information Technology? There is no doubt that information technology has made significant progress during the past two decades. Modern

What are the steps in executing the program, What are the steps in executin...

What are the steps in executing the program? 1.Fetch 2.Decode 3.Execute 4.Store

Write html code to accomplish the web page to insert frame, Write the HTML ...

Write the HTML code to accomplish the web page to insert the frame extending 300 pixels across the page from left side. The HTML code to accomplish the web page is given below

Interpreter, difference between pure and impute inter preter

difference between pure and impute inter preter

How the simulation is done, How the simulation is done Data is entered ...

How the simulation is done Data is entered into the computer and simulation is run. The below scenarios may be tried out: -  Timing of lights varied to see how traffic flow

Identifying constraints between objects, Identifying Constraints between Ob...

Identifying Constraints between Objects In a system, there are few boundaries to work on. Boundaries or Constraints are functional dependencies among objects which are not con

How to modify or delete a custom class name, 1. Click Tools > General Optio...

1. Click Tools > General Options, and then click the Object Mapping tab. 2. From the Object type list, select the standard object type that is associated with the object class

Pre-os and runtime sub-os functionality, In a raw Itanium, a 'Processor Abs...

In a raw Itanium, a 'Processor Abstraction Layer' (PAL) is incorporated in system. When it's booted PAL is loaded in the CPU and provides a low-level interface which abstracts a nu

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd