Hello,
Let me explain, what happens..(If I am not mistaken)..
When an USB IPhone Connector is connected to USB port of Computer, IPhone installs the Drivers of the same (or ITune Software identifies the Iphone). Until and unless the Drivers can installed or detection takes place the Phone would not be charged. IPhone also carries the HDD within it. So, when you insert the Connector, it detects the HDD as well. (you can see the Iphone HDD in the My Computer option)
In your case, all you want is the IPhone has to get charged via your USB and no transfer between the PHONE and computer should take place, correct??
However, you need to understand, it would not get charged until the IPhone is detected. And for detection your HDD has to be activated and drivers be installed and a Transfer has to take place (which you do not want.)
Correct??
Question arises, Why don't you simply charge the IPHONE via a Electric Socket??