NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Job on PHP Dock close


Joined: 13 Apr 2010
Posts: 1
Reply with quote
Hello,

I was wondering if it is possible to execute a cli/php command on phpdock exit.

The reason why i am asking this is the following:
At startup i have a job that starts a serial proxy application.
Now i want phpdock to close the serial proxy application when exiting.

Tnx
View user's profileFind all posts by iliasbSend private message


Joined: 02 Dec 2010
Posts: 3
Reply with quote
You can use onUnload javascript.

You can play with the following code:


<html>
<head>
<script language="JavaScript"><!--
function unload() {
alert('exit');
}
//--></script>

</head>

<body onUnload="unload()">
...
</body>
</html>
View user's profileFind all posts by luciroSend private message


Joined: 15 Apr 2015
Posts: 1
Reply with quote
WAOOO NIce Post hear



__________
View user's profileFind all posts by Parker45Send private message
Job on PHP Dock close
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic