Run Php Files When user is not online
<p>I have a php file , For example <code>http://domain.com/user?id=uniquetoken</code> ,When user visits that url with unique token it does lots of stuffs using javascript and php and it takes atleast 2 minutes to complete a certain task.If the user is not patient and closes the window that task is not performed at all, What i need is when the user just visit <code>http://domain.com/user?id=token</code> , the task must me done in background.so even if user closes the window the task should be completed by php in backend, </p>

<p>I have some ideas like , file_get_contents, will that complete the task completely?Any ideas or suggestion please?</p>

<p>edit :
Somebody tell me if <code>file_get_contents(http://domain.com/user?id=token)</code> , another php file works? even after they close it immediately?? i have enabled  <code>ignore_user_abort().</code> </p>
