Checking for and running an external process

Hi. Am a new to PHP and would like a solution.

I am running linux opens use with php5.

I would like for when a web page is opened to check if a process is running. to do this manually I would run 'service icecast start from the command line. How can I check if this process is running when a webpage is opened and if it is not running start the process.

Many thanks.
Colin

Sponsor our Newsletter | Privacy Policy | Terms of Service