Hi Simon,probably the best option would to register the code to be executed as a shutdown function via register_shutdown_function. This code will be run at the very end of the request, after every other code has finished, even after agavi has been shut down. However that might still get you into problems as all resources might not be loaded at the point where the main request finishes so you might consider doing a shellout with some wait time. You'd also have to take into account that some agavi facilities might not be available any more, the database connections for example.
cheers felix On Aug 10, 2009, at 11:51 AM, Simon Cornelius P Umacob wrote:
Huomenta! Is there a way in Agavi where I can execute code after the final HTML code is rendered? I'm currently writing an app that would reboot, shutdown, or change the machine's IP address so I need to display output before disconnecting the server. Thanks! [ simon.cpu ] _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
-- Felix Gilcher Bitextender GmbH Paul-Heyse-Str. 6 D-80336 München T: +49 89 57 08 15 16 F: +49 89 57 08 15 17 M: +49 172 840 88 28 [email protected] http://bitextender.com/ Amtsgericht München, HRB 174280 Geschäftsführer: David Zülke, Florian Clever
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
