You are here: Re: Long time to finish a program « PHP Programming Language « IT news, forums, messages
Re: Long time to finish a program

Posted by Jerry Stuckle on 03/10/07 14:00

rahulthathoo wrote:
> Hi
>
> I have a perl program called by my php script, which in turn is called
> by the browser. Now, the perl program is called using exec, but takes
> a long time to finish. So, till the time the perl script does not
> finish its job, the browser does not show anything. I have messages
> like "Dont close this window", but that does not show up till the
> whole perl program finishes. Is there a way, I can somehow remedy
> this, try to show a message on the browser - "Please while your data
> processes" and then do the processing in the background?
>
> Rahul
>

Rahul,

You need to flush() your output. But beware - just because it goes to
the browser doesn't mean the browser will display it. For instance, if
it's in a table, the browser may wait for the entire table to be sent.
And there are a lot of other possibilities.

But if you keep it short and clean, you have a better chance to get your
message displayed immediately.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация