Last night, I was up late reading PHP tutorials with the intentions of eventually getting into web design (PHP is a programming language for dynamic web pages, for whoever doesn't know).

The odd thing is, while I slept that night, I dreamt I wrote a few lines of code detailing skin removal from my face from about the area of my cheek bone to my ear. And when I woke up, I found that I had been resting my head directly on my ear, which was hurting pretty badly by now.

I'm posting because I'm curious to hear other people's stories: What external factors have directly affected your dreams?