The reasons questions like this come up is simple lack of understanding of the basics and the limitations of cameras. I suggest you look up The Zone System for digital cameras, once you understand that, your question will be answered.
There are basically 2 ways to do it. Lately, I find way too many people depending on HDR when it can easily be done if you know how to control light. People like HDR becuase t takes no real effort, and the results can be quite acceptable. I just see it as a crutch to fill in for lack of knowledge or understanding. Now HDR can do some really funky shots, and often, I like the look... but when someone is trying to overcome a PHOTOGRAPHIC challenge and using HDR as the answer... well I prefer the method that lets me avoid it. Call me a purist, I don't mind.
Me, I don't want to control the picture in photoshop or photomatix... I want to do it in such a manner that as soon as I click the shutter... it is
done.
When you have 2 areas of such extremes such as a ery bright background and a dark foreground, you can use reflectors, lights, strobes or speedlights. In my example, I used a single battery powered speedlight set to 1/2 power.
If I expose for the outside only, this is what I get:
If I expose for the inside, this is what I get:
If I expose for the brightest part of the scene and use flash to balance for the ambient, these are the results:
I have rich tones outside and clear rich range of exposure for the inside.
Now, common sense says that I cannot light a whole forest like this, so, I still have control over the light with knowledge.
1. I can wait until the light drops a bit in the afternoon to get a better balance
2. I can control a smaller area of my shot using 1 or more speedlights
3. I can use reflectors to bounce the light into the areas that I need for fill
These are just a couple of possibilities, and there are many, many more.
My point being, digitally manipulating images is all well and cool... and I am 100% all for it. However, this is photography, and should we not use the knowledge of photography to give us the answers first and leave all the other tools in the box for the times that we are limited?
An example would be if I was trying to take a shot of a huge expanse of forest with nothing more than a camera and it is noon on a VERY bright day, then some subtle HDR or tone mapping would be a solution if you had no flashes to fill in the darker shadowed areas.