Re: [PHP] Stop process when user close window browser

2006-06-30 Thread Richard Lynch
On Fri, June 30, 2006 4:54 am, weetat wrote: >Yes. I read the manual regarding the connection handling. >However ,in my php program , the execution did not stop , because i > have logger which log sql statement "INSERT" statement when inserted > data to database is ok . > > When i close the

Re: [PHP] Stop process when user close window browser

2006-06-30 Thread tg-php
On the other hand, you can tell the web server that the browser has been closed or the page has 'exited'. Not 100% reliable, but in theory you could use the "onUnload" (think that was it) event for a web page that does something sloppy like spawn a popup window that hits a PHP script that the

Re: [PHP] Stop process when user close window browser

2006-06-30 Thread tedd
At 5:54 PM +0800 6/30/06, weetat wrote: >Hi Thomas, > > Yes. I read the manual regarding the connection handling. > However ,in my php program , the execution did not stop , because i have > logger which log sql statement "INSERT" statement when inserted data to > database is ok . > >When i clo

Re: [PHP] Stop process when user close window browser

2006-06-30 Thread Rasmus Lerdorf
weetat wrote: Hi Thomas, Yes. I read the manual regarding the connection handling. However ,in my php program , the execution did not stop , because i have logger which log sql statement "INSERT" statement when inserted data to database is ok . When i close the browser , the sql executio

Re: [PHP] Stop process when user close window browser

2006-06-30 Thread Thomas Munz
What kind of connection you use ( persistent ?) and which PHP and MySQL version? Normaly, PHP exit after the browser gets closed, but sended SQL to MySQL get finished executed. on Friday 30 June 2006 11:54, weetat wrote: > Hi Thomas, > >Yes. I read the manual regarding the connection handli

Re: [PHP] Stop process when user close window browser

2006-06-30 Thread weetat
Hi Thomas, Yes. I read the manual regarding the connection handling. However ,in my php program , the execution did not stop , because i have logger which log sql statement "INSERT" statement when inserted data to database is ok . When i close the browser , the sql execution still running

Re: [PHP] Stop process when user close window browser

2006-06-30 Thread Thomas Munz
By default, PHP will also stop execution when the browser is closed. See: http://de.php.net/manual/en/features.connection-handling.php on Friday 30 June 2006 09:06, weetat wrote: > Hi all, > > I am using PHP 4.3.2 and MYSQL database. > I think this question has been asked many times, however

[PHP] Stop process when user close window browser

2006-06-30 Thread weetat
Hi all, I am using PHP 4.3.2 and MYSQL database. I think this question has been asked many times, however not solutions. The problem is that I have a php script which connect to db and update data to db which took length of time to be completed. However sometimes user accidentally close the