Dall'SRD:
Line of Effect: A line of effect is a straight, unblocked path that indicates what a spell can affect. A line of effect is canceled by a solid barrier. It’s like line of sight for ranged weapons, except that it’s not blocked by fog, darkness, and other factors that limit normal sight.
You must have a clear line of effect to any target that you cast a spell on or to any space in which you wish to create an effect. You must have a clear line of effect to the point of origin of any spell you cast. A burst, cone, cylinder, or emanation spell affects only an area, creatures, or objects to which it has line of effect from its origin (a spherical burst’s center point, a cone-shaped burst’s starting point, a cylinder’s circle, or an emanation’s point of origin).
An otherwise solid barrier with a hole of at least 1 square foot through it does not block a spell’s line of effect. Such an opening means that the 5-foot length of wall containing the hole is no longer considered a barrier for purposes of a spell’s line of effect.