To be honest if you have no clue where to start with this then the best thing to advise is that you hire someone that does know what they are doing. If this is for a client that is.
If for personal you can check this
out and start to get an idea of what you need to do to crop and save an image to the server.
Hope it helps