Iphone Charging Tips:-

iPhone 3G cannot be charged with a FireWire power adapter or FireWire-based car charger. Make sure your computer is on while charging iPhone via USB. If iPhone is connected to a computer that’s turned off or is in sleep or standby mode, the iPhone battery may drain.