My aim is to have a URL that I can have a cron job run that will restart my VPS. I also want to be able to restart it via a URL, this is why I am choosing PHP.

Any ideas?