Although I do not own an iPhone, I am sure it works the same for an iPod. Just connect your iPhone and once it is detected click on it in the left hand side (in iTunes) and go to settings in the main window and deselect something along the lines of "open iTunes when iPhone connected"
This should work.