Does all php code finish executing
Posted: Fri Aug 24, 2007 6:55 am
Hi, sorry if i'm in the wrong forum but I think it goes here although probably a very simple question...
If I load a php page and close it before its finished loading, will the server still execute all the php code? - I thought it didnt but need confirmation.
I know I could test this to a degree but what i'm thinking is:
If it doesnt finish executing all code, does it at least finish the function its on, what if its in the middle of a file write (although I know more or less how temp files / dirs are handled). If it stops at a certain place in the code, where does it decide to stop executing? I've tried googling but I think my search terms must be way too innacurate for what i'm actually trying to ask...
Thanks
Robble
If I load a php page and close it before its finished loading, will the server still execute all the php code? - I thought it didnt but need confirmation.
I know I could test this to a degree but what i'm thinking is:
If it doesnt finish executing all code, does it at least finish the function its on, what if its in the middle of a file write (although I know more or less how temp files / dirs are handled). If it stops at a certain place in the code, where does it decide to stop executing? I've tried googling but I think my search terms must be way too innacurate for what i'm actually trying to ask...
Thanks
Robble