PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > Re: Need to break a while..
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: Need to break a while..

Réponse
 
LinkBack Outils de la discussion
Vieux 11/09/2007, 18h35   #1
ELINTPimp
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Need to break a while..

On Sep 11, 9:25 am, Sonnich Jensen <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.

  Réponse avec citation
Vieux 12/09/2007, 13h44   #2
Sonnich Jensen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Need to break a while..

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

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h35.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09788 seconds with 10 queries