adding server side code for PHP and client ibraries in PHP