Quantum chromodynamics and charm photoproduction