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
Re: Job on PHP Dock close


Joined: 11 May 2019
Posts: 1
Reply with quote
iliasb wrote:
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


Is this still working in 2019?
View user's profileFind all posts by leamccullochSend 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