Associate
- Joined
- 1 May 2006
- Posts
- 810
- Location
- Bristol, UK
Afternoon all.
Not sure how many people have had experience with this function but the various PHP sites don't have many comments!
I'm trying to query the status of the various services i.e. apache.exe, filezilla-server.exe etc and output either "Running" or "Stopped" for each one.
Here's what I have so far:
But I get the error:
When I just try executing win32_query_service_status("apache"); I get:
Any suggestions as to how I can get this to work? Or any other functions that will do a better job?
Cheers.
Not sure how many people have had experience with this function but the various PHP sites don't have many comments!
I'm trying to query the status of the various services i.e. apache.exe, filezilla-server.exe etc and output either "Running" or "Stopped" for each one.
Here's what I have so far:
Code:
if(win32_query_service_status("apache")="FALSE")
{
$webserver_status = "<font color=FF0000>Stopped</font>";
}
else
{
$webserver_status = "<font color=00FF00>Running</font>";
}
Code:
Fatal error: Can't use function return value in write context
Code:
Fatal error: Call to undefined function win32_query_service_status()
Any suggestions as to how I can get this to work? Or any other functions that will do a better job?
Cheers.