For a subharmonic function u
defined on a cone or on a cylinder which is dominated on the boundary by a certain
function, we generalize the classical Phragmén-Lindelöf theorem by making a
harmonic majorant of u and show that if u is non-negative in addition, our harmonic
majorant is the least harmonic majorant. As an application, we give a result
concerning the classical Dirichlet problem on a cone or on a cylinder with an
unbounded function defined on the boundary.