When a shader reads from a texture while it is simultaneously rendering to the same texture, the results are undefined. This is why "traditional" or fixed-functionality blending with glBlendFunc and glBlendEquation is useful.
To mix two images using traditional blending, you render the first image, set the blending mode, function, and equation, and render the second image. This is guaranteed to give correct results, and is usually the fastest way to achieve effects like transparency.
To achieve the same effect with a shader, you need to render the first image to an auxiliary texture, change shaders, and render the second image to the actual framebuffer, doing the blending as a final step in the fragment shader. This is usually slower because of the extra overhead of texture reads, and will certainly use more GPU memory for the auxiliary texture.
On modern hardware, the difference between the two techniques tends to be small.