update serverPHP code