C++ code: (I can't remember if the progress bar thing worked properly or not)
Server code (written in PHP

This is a basic example that will help you get started. Although if you want to modify this any further you probably want to do some research on socket programming before messing with this.