how to know server started or not using PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
madhu
Forum Commoner
Posts: 82
Joined: Fri Mar 03, 2006 9:34 am

how to know server started or not using PHP

Post by madhu »

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.
User avatar
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

Post by Chris Corbyn »

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
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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

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.
Post Reply