I've been creating a php script for downloading facebook user data. Because there are a lot of data, script works about 1- 1,5 minut, before it ends. Hovewer after couple of seconds my app on Facebook appears error, suppose because there are no response from my server.
But I want to proceed app, for ask some questions for user, so how can I put that downloading process into the background.
Some part of my app which is downloading the data from Facebook is located in different server, and I send them only access token and user ID, and after successful authorization it starts to download data.
For send data to the different server I used file_get_contents()
method.
EDIT: I think about something like that: put process on the server into the background, and in the user-part script kill the method which began that downloading script.