How would i turn my iPhone 4 on if my lock button is broken?

Yesterday my iPhone 4's lock button broke. I'm going on vacation for two weeks and was wondering that if my iPhone turns off by running out of power or something like that, how I would turn it back on. I accidentally turned my iPhone off today and found the only way to turn it back on was by plugging it into my home computer. Would I be able to plug it into any computer to turn it back on? Or would I have to be stuck with it being off for the rest of my vacation? I still have my warranty so ill get it fixed as soon as I get back from vacation but until then I need help.

You'll have to wait for it to die.

Well go to the apple store before you leave and tell them what is going on and they will fix what's wrong with it and you would be surprised how many things would be wrong with your iPhone but hope everything works out good luck

Jessie's right, you have no idea what else is wrong in that iPhone of yours

Just plug it into the charger and it will turn right back on.