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? Link to comment https://forums.phpfreaks.com/topic/222105-php-question/ 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? Link to comment https://forums.phpfreaks.com/topic/222105-php-question/#findComment-1149126 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 Link to comment https://forums.phpfreaks.com/topic/222105-php-question/#findComment-1149134 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.