Go to the source code of this file.
Sample client add script.
Obviously not production-ready code, just simple and to the point.
Definition in file addclient.php.