I'm having a question about processing data of PHP : an user submits his data to the server then the PHP script will have to process it and print the output to the browser but if the user closes the browser before the PHP can print the output, will the PHP script still process the data at the server-side to the end or it will stop immediately ? Can anybody tell me please ?
PHP doesn't know if the user closed the browser until it attempts to send output to it. So if you have the form processor at the top of your script, before output is being sent, and the user has closed his window AFTER submitting the data, then PHP would process it.