Updated PHP files for remotejava support