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

NachoS, Can I get the scheduling code for NachOS?

Can I get the scheduling code for NachOS?

Optimality - heuristic search strategies, Optimality - Heuristic search str...

Optimality - Heuristic search strategies: The path cost of a solution is considered as the sum of the costs of the actions that led to which solution is given. This is only on

Introduction to parallel computing, Introduction  To Parallel Computing ...

Introduction  To Parallel Computing Parallel computing has been a subject of importance in the computing community over the last few years. Ever-growing volume of databases and

Sequential execution of instructions in risc, Q. Sequential Execution of In...

Q. Sequential Execution of Instructions in RISC? Let's describe pipelining in RISC with an illustration program execution sample. Take the given program (R denotes register).

DLD, Construction of j-k using 4-bit shift register

Construction of j-k using 4-bit shift register

What is java swing, Swing is a GUI toolkit for Java. It is one kind of the ...

Swing is a GUI toolkit for Java. It is one kind of the Java Foundation Classes (JFC). Swing haves graphical user interface (GUI) widgets such as text boxes, buttons, split-panes, a

What is write miss, What is write miss? During the write operation if t...

What is write miss? During the write operation if the addressed word is not in cache then said to be write miss.

Classical approach - canonical genetic algorithm, Classical approach - Cano...

Classical approach - Canonical genetic algorithm: However returning to the classical approach, as there example, whether solving a particular problem involved finding a set of

What is wireless transmission systems, What are wired and wireless transmis...

What are wired and wireless transmission systems? Transmission Systems: Modern type long distance transmission systems can be placed in three wide categories: 1. Radio Sy

Chemistry, application problems on electrochemical series

application problems on electrochemical series

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