Updates local options

Modified php api to call into new added class to update local options from remote server.