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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 9th, 2000, 12:15 PM
Mike Cobb Mike Cobb is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Bookham, Surrey, UK
Posts: 4 Mike Cobb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi

When my perl script is called from a web page it creates a text file then outputs the results to the client's browser using

print <<'end_print_tag';
<html>
. . .
</html>

This works fine, but if you then refresh the results page you just get the raw HTML
<html>
. . .
</html>

Any pointers on how to stop this would be much appreciated.

Mike

Reply With Quote
  #2  
Old December 12th, 2000, 01:41 PM
des des is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 73 des User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Hi

Can you post the code you are using?

print <<'end_print_tag';
<html>
. . .
</html>

end_print_tag - have you put this bit in?


Reply With Quote
  #3  
Old December 14th, 2000, 01:12 AM
Mike Cobb Mike Cobb is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Bookham, Surrey, UK
Posts: 4 Mike Cobb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi

>end_print_tag - have you put this bit in?
Yes. The problem seems to have improved with a few changes to the server and by adding no cache meta tags to the page. However it still seems scary that this can happen.

Regards Mike

Reply With Quote
  #4  
Old December 14th, 2000, 04:04 PM
Dingle Dingle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 452 Dingle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 12 sec
Reputation Power: 8
make sure the very first thing thats printed is the header...

print "Content-type: text/htmlnn";
print << end_print_tag;
<HTML>
..
</HTML>
end_print_tag

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Perl output not interpreted by Browser


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 4 hosted by Hostway