We present a scheme for the experimental realization of a quantum phase gate acting on the polarization degree of freedom of traveling single photon wave-packets. The scheme exploits the giant Kerr nonlinearities that can be achieved in dense atomic media showing electromagnetically induced transparency, and it may be useful in a variety of quantum communication schemes