![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/03/2016, 10:56
|
![Avatar de dashtrash](http://static.forosdelweb.com/customavatars/avatar175709_1.gif) | Colaborador | | Fecha de Ingreso: abril-2007 Ubicación: Ni en Sevilla,ni en Sanlúcar..qué más da..
Mensajes: 927
Antigüedad: 17 años, 10 meses Puntos: 270 | |
Respuesta: ¿Ejecutar script php y detenerlo inmediatamente? Si utilizas PHP-FPM, puedes hacer eso, usando fastcgi_finish_request.
Es posible que register_shutdown_function también te lo permita hacer.
Aún así, eso no significa suponer que todas las tareas que quieres hacer, se completen con éxito. Es más, si necesitas notificar al usuario de cualquier error, no podrás hacerlo (la request ya ha terminado) |