You are here: Re: Need to break a while.. « PHP Programming Language « IT news, forums, messages
Re: Need to break a while..

Posted by Sonnich Jensen on 09/12/07 11:44

On Sep 11, 7:35 pm, ELINTPimp <smsi...@gmail.com> wrote:
> On Sep 11, 9:25 am,SonnichJensen <sonnich.jen...@jotautomation.com>
> wrote:
>
>
>
>
>
> > On Sep 10, 7:09 pm, ZeldorBlat <zeldorb...@gmail.com> wrote:
>
> > > On Sep 10, 11:57 am,SonnichJensen <sonnich.jen...@jotautomation.com>
> > > wrote:
>
> > > > I have a page, including a while, which can read quite an amount of
> > > > data, if the user selects so.
> > > > I want to add something, so I can break this while - I havent found it
> > > > yet.
>
> > > > I have tried connection_aborted and connection_status, but they do not
> > > > do the trick.
>
> > > > I'd like:
>
> > > > 1) to stop it, when the user clicks on a link, so it goes to the new
> > > > page, and stops it present action
> > > > 2) eventually to add a "Stop" button on the page - any ideas how to
> > > > achive that?
>
> > > When the browser makes a new request before the current one is
> > > finished the default behavior is for PHP to abort the script. It
> > > sounds like that's what you want, no?- Hide quoted text -
>
> > I solved the problem with an <iframe> and a small file, which a
> > button, when pressed it saves a "stop" file which the larger file's
> > while loop checks for. Odd solution but it works.
> > I was just wondering whether I can pass a variable on to the other
> > running script....
>
> > BR
> >Sonnich
>
> No, once you execute a request, you cannot "inject" additional values
> to the executing script on the fly. Meaning, if your script took 2
> minutes to finish executing, there is no way to send additional
> information once that operation has started. It has only what it was
> given in the initial request. Hope this what you were looking for.

Yep. That is the idea of have an iframe and from there save a file,
which the main thing looks for. It works well.

BR & thanks
Sonnich

 

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

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