iphone 2g, 3g, 3gs

I had recently borrowed an iphone from a friend to check its functionality. It worked fine for few days (apart from its call hang bug). However today when I installed skype and ebuddy on the iphone I used up all the power of my iphone and thus wanted to charge the iphone. However was astonished to see that the iphone was not charging up even after plugging it to my pc for 3 hours. Infact I noticed that the iphone was unusually hot than normal. Even when I tried to disconnect and connect back, nothing happened. The iphone was dead in some time which left me terrified and queasy :(

Then I decided to ask google (my savior) about these rationals. There I found that I was not the only 1 who faced this problem. Just after seeing so many pages on google on this topic, I gave a sigh of relief but not because there were so many people who were effected but because I felt that there would be a solution to this issue.
The people who most faced this issue were the ones who had jailbreaken their iphones :) That doesnt mean I have a jailbreaken phone ok.

The solution was simple however unusual:

1) Step 1 try to reboot your iphone by pressing Home button and power button for 8-10 secs
2) Then try to keep your phone on charging and see what happens.

If still the issue exists then try to reboot your iphone for couple of times. I had to do it for 5-7 times.

If does not work, post here and I will try to help you out in some way…