RE: [PHP] aborting script

From: Date: Sat, 12 Apr 2003 15:01:27 +0000
Subject: RE: [PHP] aborting script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143610@lists.php.net to get a copy of this message
Well, you know, I was thinking about this after I sent it and I don't think it would work anyway, because it just emulates the function of clicking the mouse down again. I was thinking that if you where to wrote some code to basically say: <Script Language"php"> function startOver(); if(document.onmousedown){ "you'd have to figure out what needs to go in here, but something like a "start over function"; } </Script> <Script Language="JavaScript"> function onClick('startOver') </Script> I know the syntax on this is WAYYYYY off, but thought maybe with some research you could get the jist of what it was that I was trying to get the script to do. Again I don't think it's going to do anything other than emulate what you don't want and act as if the client is clicking on the link again and again, impatiently. I think, you should go with what the other suggestion. About having it load another page while PHP is parsing the code. Hope this helps. David -----Original Message----- From: Mike [mailto:php-digest@custom87.net] Sent: Thursday, April 10, 2003 10:50 PM To: PHP4 Emailer Subject: RE: [PHP] aborting script Can you give an example? I don't understand what you are trying to do... -Michael On Thu, 2003-04-10 at 19:24, PHP4 Emailer wrote: > Ok I'm new to this whole PHP programming aspect, but can't you just use a > simple snipit of Javascript with it's onClick() function and force the PHP > script to stop running once the onClick() fucntion is enabled?? Maybe not, > and I understand if I am way off course, but like I said I am new to PHP > (hence signing up for this mailing list) and just thought that sometimes you > have to think "outside" the box(being php itself). > > Hope this helps you come up with some ideas if this one doesn't work. Best > of luck.... > David > > -----Original Message----- > From: Marco Laponder [mailto:mlr@interchain.nl] > Sent: Thursday, April 10, 2003 8:54 AM > To: php-general@lists.php.net > Subject: Re: [PHP] aborting script > > > > > I did that ( of course ). So I am not smart enough or I am overlooking some > things. I cannot use the connection_status as the script is still in the > uodbc_fetch call (which might take about 30 seconds ), so the first chance I > get is after odbc_fetch call, but I would like to stop the odbc_fetch call > when the user reclicked the link or clicked the stop button. > Marco > > > "Erwin Kerk" <erwin@scoutingnederland.nl> schreef in bericht > news:3E9577FA.9060001@scoutingnederland.nl... > > See > > > > Chapter 21. Connection handling > > > > in the PHP manual > > > > > > Erwin > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#143610) next »