
July 11th, 2000, 11:09 AM
|
|
Contributing User
|
|
Join Date: Jun 2000
Posts: 71
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
|
Hi,
Here is what am I trying to do:
I want my page to refresh it self every 5 seconds, but only if some file has changed in last 5 seconds. I can check that easy with Perl script, but problem begins when that file hasn't changed and in that case I don't want my page to refresh, so I would just exit the script with out printing anything to html.
And in that case this error appears: "Premature end of script headers"
How can I fix that?
Scrip is called by html in this way:
<meta http-equiv="Refresh" content="5; URL=http://www.upitnik.net/cgi-bin/test.pl">
If script does nothing when called, would above line call script every 5 seconds ?
If not, how could I do this what am I trying to do?
|