THE P(T) SPECTRUM OF HEAVY QUARKS IN PHOTOPRODUCTION