codrgii Posted December 19, 2010 Share Posted December 19, 2010 are there any php functions that are best used when testing to see if a server is busy or not? and if the server is busy then display a "server is busy" message in the php script? Quote Link to comment Share on other sites More sharing options...
Anti-Moronic Posted December 19, 2010 Share Posted December 19, 2010 How do you mean server is 'busy'? do you mean unreachable, offline? Quote Link to comment Share on other sites More sharing options...
TerryMullins Posted December 19, 2010 Share Posted December 19, 2010 are there any php functions that are best used when testing to see if a server is busy or not? and if the server is busy then display a "server is busy" message in the php script? I don't know of any ready made functions in php that will give you this information, however, on my server I use these commands from the command line. ( Linux ) ps: ps is short for process status, which is similar to the top command. It's used to show currently running processes and their PID. A process ID is a unique number that identifies a process, with that you can kill or terminate a running program on your server (see kill command). ps U username : shows processes for a certain user ps aux : shows all system processes ps aux --forest : shows all system processes like the above but organizes in a hierarchy that's very useful! Hopefully that was useful. Terry Mullins Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.