Dear All,
Can any one know "how to know the server started or not using php programatically"
Please suggest me how to implement...
Waiting for your valuable replies....
Thanks and regards
MADHU
feyd | capslock was apparently stuck when madhu typed the title.
how to know server started or not using PHP
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: HOW TO KNOW SERVER STARTED OR NOT USING PHP
What do you mean? The same server? PHP won't run is if the server hasn't started correctly. If you're checking a remote machine just use something like fsockopen() to try to establish connections to the relevant services.madhu wrote:Dear All,
Can any one know "how to know the server started or not using php programatically"
Please suggest me how to implement...
Waiting for your valuable replies....
Thanks and regards
MADHU
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
A mythical server, or something a little more concrete?
This sort of thing will often be done through system() and it's siblings. What you need to run depends entirely on the server you're starting.
This sort of thing will often be done through system() and it's siblings. What you need to run depends entirely on the server you're starting.