issue #10 Web: initial php files

created error class