How to run a php script on application close

how to run a php script before application close button is pressed
like running backup script
and then show your application closed successfully.

1 Like

Thanks to HEScript, in the UserMain script, there is an event:
procedure OnPubBeingClosed;

You can then use HEScript to invoke a PHP script. See the documentation.

if this script gives false output
then application should not be closed