easy point for all experts
Posted on 1998-12-04
Now, I am designing the home page for MCS department.
I have a very simple text counter written by C language.
After I compiled C program , I got 'a.out' and I include
this line in my welcome page <!--#exec cmd="../a.out"-->
and it is working, every time I have visited the home page,
the counter have increase by 1.
But my problems are : when I hit 'RELOAD' or 'Home'(home is
a link created by my self. The counter is still increase by
1 and I would like it remain constant. And it will increase by 1 when I visit it another day. So I would like the experts to teach my how to write perl for this problem.
The perl should be able to check :
If the REMOTE_HOST still same then will not call 'a.out'
if the REMOTE_HOST is different then call 'a.out'
I will be appreciated . Thanl you !