php - Rackspace Create a custom command line tool that provides to specific features -


i want develop below functionality, getting stuck how start. if developed please me.

  1. reboot server

  2. block ip address

this tool should written in php , utilize existing rackspace php sdk:

https://developer.rackspace.com/sdks/php/

the script need store hardcoded username , api key; information used access api.

the reboot i'm not sure of. block ip store ip's visit site in database. have column heading blocked. when user information column. , use code after.

if($user_id_blocked = 'blocked'){     die('you have been blocked. please contact admin.'); } 

Comments