I am using localhost to develop a website. Recently i was surprised that a script i was using was fully executed and then redirected using "header:('Location:http://....')" (with this being at the bottom). I was surprised because i had read the header needed to be at the top of the page before any output was called.
To see if there was a difference i then placed the header at the top of script. I was redirect fine but the script was not fully executed. I read up at "http://stackoverflow.com/questions/7213646/php-header-location-immediately" that i may "need ignore_user_abort() and with php-fpm it's fastcgi_finish_request() to guarantee entire script execution."
I am novel programmer and so if somebody could go into the how to do this that would be great, if it really is a necessity. However my first (and main) question is whether this is necessary as the script was working to start with. In order words, is this just an oddity with localhost, and thus i will need to go the more complicated route when i host the website properly?