OK, one more thing to add to the tutorial the OP just got on CGI scripting:

In the CGI execution context (webserver), it's best to put your output last. As soon 
as you do this:

    print "Content-type: text/html\n\n"; 
    print "... ";  
    
don't rely on the webserver to do much more for you after it's done printing the http 
output.

My experience across about many different commercial and institutional web servers 
leads me to at minimum wrap up all system-related actions -- like file ops -- before 
printing output. And the best approach is: output last. Otherwise, I find webservers 
inconsistent as far as when they to let go of a CGI process. Perhaps someone who knows 
more about Apache or IIS could comment.


  - Bruce

__bruce__van_allen__santa_cruz__ca__

Reply via email to