Hello!
I hope you can help me please
I have a PHP script that connects to IRC to alert us of our support website's status. That's the short story...
I am having to start the script manually with
/usr/bin/php script.php &
which is fine, until it disconnects itself or something bad happens.
I was hoping you could help me to do a couple of things...
1) In my header.php to see if the script is running, if it isn't, start it (otherwise do nothing, which will be the most case)
2) I want to create a page that will show the status of the script, including...
- Yes or No as to whether the script is running
- Button to kill the script "Stop" (if running)
- Button to restart the scrript "Restart" (if running)
- Button to start the script "Start" (if not running)
Any help on this would be much appreciated; it's a Linux dedicated server
Many thanks!