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
Does all php code finish executing
Moderator: General Moderators
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Re: Does all php code finish executing
I don't believe so, not automatically. I think you need to specify to PHP that you want it to continue.robble wrote: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.
- stereofrog
- Forum Contributor
- Posts: 386
- Joined: Mon Dec 04, 2006 6:10 am
You've already had a discussion about itrobble wrote:Interesting potential to run cron jobs.
viewtopic.php?t=72594
There are 10 types of people in this world, those who understand binary and those who don't