php - Redirect Users Based on Server Traffic -
i have php script finds out number of users on each of servers , inputs mysql database. want user redirected page least users on it, defined mysql database.
how can done?
thanks in advance, callum
you use query on db sorts on number of users.
select servercolumn table order numberofuserscolumn asc;
that retrieve servers ordered serverload (as defined in db).
as redirection part can take @ http://php.net/manual/en/function.header.php
and use "location" header.
Comments
Post a Comment