execution to the end?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

If a user hit stop button on his/her browser after a php has started,  
will the php script be continued to the end?

iTech Consulting Co., Ltd.
Expert of ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883    Fax: (852)2325 8288

Re: execution to the end?

Quoted text here. Click to load it

Yes it should. The server has no knowledge of wether the user has pressed  
stop on their browser.  

Re: execution to the end?

Quoted text here. Click to load it

Don't present a misconception as truth. It depends on the length of the  
script, and the server _does_ know about aborted connections. Or did you  
think the server kept sending you those xxx MB's of data you aborted to  
download after the first 4KB was received? That's why we have functions  


In short: if you have a longer scrit and it's critical it will run untill  
the end, use ignore_user_abort().

Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel

Site Timeline