Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 11th, 2000, 11:09 AM
Pepe Pepe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 71 Pepe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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?

Reply With Quote
  #2  
Old July 11th, 2000, 06:59 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Tell your script to overwrite the line -> <meta http-equiv="Refresh" content="5; URL=http://www.upitnik.net/cgi-bin/test.pl"> so it doesn't refresh any longer.
The initial state when your script is called, tell it to print "<meta http-equiv="Refresh" content="5; URL=http://www.upitnik.net/cgi-bin/test.pl">"

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > exit with out error ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway