Posted By

adampatterson on 05/07/10


Tagged

server load


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

BrianCoyDesign
dantreacy


Server Load


 / Published in: PHP
 

  1. $load = sys_getloadavg();
  2. if ($load[0] > 80) {
  3. header('HTTP/1.1 503 Too busy, try again later');
  4. die('Server too busy. Please try again later.');
  5. }

Report this snippet  

You need to login to post a comment.