SPUG: cgi help

dancerboy dancerboy at strangelight.com
Thu Apr 5 22:10:34 CDT 2001


At 11:12 PM -0700 4/4/01, Ryan Ames wrote:
>  thanks for the help...flushing the buffer accomplished what I needed...

You should be aware that different browsers handle this situation 
differently:  some will display the partially-downloaded page, others 
will wait until the server closes the connection before displaying 
anything.

I still say that the "correct" solution is to return an identifying 
token which will allow the visitor to get the query results once 
they're available. (Of course, doing things the "correct" way isn't 
always worth the extra effort.)

-jason


>
>-----Original Message-----
>From: Dan Ebert
>To: Ryan Ames
>Cc: 'spug-list at pm.org'
>Sent: 4/4/2001 5:59 PM
>Subject: Re: SPUG: cgi help
>
>
>I don't know if this would work ... but it might be worth a try.
>
>Turn buffering off with
>
>$| = 1;
>
>Then print something to the browser
>
>print CGI::header;
>print "Processing ...";
>
>so the browser gets something.
>
>Then do the query and print the results when the query is done.
>
>Dan.
>-----------------------------------------------------------
>Optimists:  the glass is half full.
>Pessimists: the glass is half empty.
>Engineers:  the glass is twice as big as it needs to be.
>-----------------------------------------------------------
>
>
>
>
>
>On Wed, 4 Apr 2001, Ryan Ames wrote:
>
>>  hello all,
>>	I am writing a cgi script that is using oraperl to query the
>>  database and post the results.  My queries are somewhat on the hefty
>side
>>  and my browser keeps timing out.  Is there any way that I can keep
>this from
>>  happening?  thanks....
>>
>>
>>
>>
>>  Ryan Ames
>>  E-valuations.com                          ryan at e-valuations.com
>>  120 Lakeside Ave, Suite 330      phone:  206.695.6351
>>  Seattle, WA 98122                         fax:  206.328.7091
>>
>>
>>
>>   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>- -
>>       POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
>>        Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
>>    Replace ACTION by subscribe or unsubscribe, EMAIL by your
>Email-address
>>   For daily traffic, use spug-list for LIST ;  for weekly,
>spug-list-digest
>>    Seattle Perl Users Group (SPUG) Home Page:
>http://www.halcyon.com/spug/
>>
>>
>>
>
>  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>      POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
>       Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
>   Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
>  For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
>   Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





More information about the spug-list mailing list