Jump to content

php question...


codrgii

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.