The double slit experiment shown that photons can behave as either particles or waves, depending from how the experiment is conducted. Even if they have zero rest mass, they move at the velocity of light then appling the relativity equation is possible to shown that they have quantity of motion, thus a not-zero equivalent mass.