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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.